Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: ICE due to "Flag* ops should never make it to codegen" #22198
The seemingly relevant SSA ops are:
These are generated by lower from:
I'm guessing the rewrite rules just need reordering so that we instead lower into moving constant 1 to memory.
Adding a rule for
seems to fix the ICE. Not sure if that's the best solution. (A complete fix would at least handle all the other SETCC/FlagCC combinations.)