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: internal compiler error: val is in reg but not live (with ssa checks on) #31915
When compiled with the ssa checks enabled (
crashes the tip compiler with this error:
The 1.12 and 1.11 compilers are also affected. The 1.10 compiler seems to be okay.
The SSA dump starts with (b10 is the entry block)
v46 looks weird (even without SSA check). It is MOVLconst but the type is flags. MOVLconst instruction doesn't even touch flags though... It seems this comes straightly from lower. I haven't looked into how it is generated.
Here are all the AMD64.rules that get executed, in order, while compiling this code. I haven't figured out which of them is outputting incorrect type information.