cmd/compile: some codes in DSE rely on the order of values #70409
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version devel go1.24-3ca78afb3b Mon Nov 18 04:56:52 2024 +0000 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Compile the following code, the first time with no
-gcflags
, the second with-gcflags='-d=ssa/check/on'
, then compare the assembly code.What did you see happen?
The assembly code generated without
-gcflags
:And the assembly code generated with
-gcflags='-d=ssa/check/on'
:It seems that the redundant zeroing cannot be removed when compiling with
-gcflags='-d=ssa/check/on'
.What did you expect to see?
The redundant zeroing can be removed even when compiling with
-gcflags='-d=ssa/check/on'
.The text was updated successfully, but these errors were encountered: