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
If we plan to remove non-copy-type constants as immediates (as even reference-type constants are still references) in #2819 it should be simpler and easier to read if we inline the constants, so the above code would become:
When reading the printed IR it can get a bit verbose, as constants are always assigned to values. E.g.,
It's also a pain in the serialisation code itself. Each instruction which takes a value as an argument needs to be sure to print the argument first in case it's a constant, because constants themselves aren't instructions. E.g.,
https://github.com/FuelLabs/sway/blob/master/sway-ir/src/printer.rs#L510-L528
If we plan to remove non-copy-type constants as immediates (as even reference-type constants are still references) in #2819 it should be simpler and easier to read if we inline the constants, so the above code would become:
The text was updated successfully, but these errors were encountered: