You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
brillig(inline) fn main f0 {
b0(v0: u1):
v1 = cast v0 as Field
v3 = mul Field 2, v1
return v3
}
This is much smaller in terms of bytecode size and more amenable to further optimizations. We should then attempt to find simple if-else blocks similar to this in SSA and flatten them even in the case of brillig functions (we'll likely want to apply the changes made in #6073 as part of this).
This may seem a bit of a contrived example but we make heavy use of small if statements such as these in the sha256 implementation such that these jumpifs make a non-trivial portion of the overall program.
The text was updated successfully, but these errors were encountered:
Consider the program
This compiles to the SSA
This is equivalent to the program
which compiles down to the program
This is much smaller in terms of bytecode size and more amenable to further optimizations. We should then attempt to find simple if-else blocks similar to this in SSA and flatten them even in the case of brillig functions (we'll likely want to apply the changes made in #6073 as part of this).
This may seem a bit of a contrived example but we make heavy use of small if statements such as these in the sha256 implementation such that these jumpifs make a non-trivial portion of the overall program.
The text was updated successfully, but these errors were encountered: