gh-132732: Automatically constant evaluate pure operations (GH-132733)
This adds a "macro" to the optimizer DSL called "REPLACE_OPCODE_IF_EVALUATES_PURE", which allows automatically constant evaluating a bytecode body if certain inputs have no side effects upon evaluations (such as ints, strings, and floats). Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
K
Ken Jin committed
695ab61351c019a7fcd731eebd77c172c90bf9e0
Parent: c45f4f3
Committed by GitHub <noreply@github.com>
on 6/27/2025, 11:37:44 AM