-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/compile: internal compiler error: val is in reg but not live (with ssa checks on) #31915
Comments
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.
|
Change https://golang.org/cl/176718 mentions this issue: |
Change https://golang.org/cl/176719 mentions this issue: |
Change https://golang.org/cl/183239 mentions this issue: |
If -d=ssa/PASS/debug=N is specified (N >= 2) for a rewrite pass (e.g. lower), when a Value (or Block) is rewritten, print the Value (or Block) before and after. For #31915. Updates #19013. Change-Id: I80eadd44302ae736bc7daed0ef68529ab7a16776 Reviewed-on: https://go-review.googlesource.com/c/go/+/176718 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
When compiled with the ssa checks enabled (
-d=ssa/check/on
), the following program:crashes the tip compiler with this error:
without
-d=ssa/check/on
, there is no crash.The 1.12 and 1.11 compilers are also affected. The 1.10 compiler seems to be okay.
cc @randall77 @cherrymui
The text was updated successfully, but these errors were encountered: