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
In the https://github.com/noir-lang/noir-bignum library it's common for programs to pass the same constant Params object to all of the unconstrained functions used as this contains config values for the field. We should be able to recognise this and push this params constant inside of the brillig function's SSA and remove the argument from the function entirely. This would allow us to perform more constant folding optimizations within the brillig function itself as currently we're unable to use the fact that we know the field in use.
The text was updated successfully, but these errors were encountered:
In the https://github.com/noir-lang/noir-bignum library it's common for programs to pass the same constant
Params
object to all of the unconstrained functions used as this contains config values for the field. We should be able to recognise this and push thisparams
constant inside of the brillig function's SSA and remove the argument from the function entirely. This would allow us to perform more constant folding optimizations within the brillig function itself as currently we're unable to use the fact that we know the field in use.The text was updated successfully, but these errors were encountered: