diff options
Diffstat (limited to 'src/cmd/compile/internal/ssa/gen/main.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/gen/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/gen/main.go b/src/cmd/compile/internal/ssa/gen/main.go index 41199f7922..19b904adab 100644 --- a/src/cmd/compile/internal/ssa/gen/main.go +++ b/src/cmd/compile/internal/ssa/gen/main.go @@ -52,6 +52,7 @@ type opData struct { faultOnNilArg0 bool // this op will fault if arg0 is nil (and aux encodes a small offset) faultOnNilArg1 bool // this op will fault if arg1 is nil (and aux encodes a small offset) usesScratch bool // this op requires scratch memory space + hasSideEffects bool // for "reasons", not to be eliminated. E.g., atomic store, #19182. } type blockData struct { @@ -208,6 +209,9 @@ func genOp() { if v.usesScratch { fmt.Fprintln(w, "usesScratch: true,") } + if v.hasSideEffects { + fmt.Fprintln(w, "hasSideEffects: true,") + } if a.name == "generic" { fmt.Fprintln(w, "generic:true,") fmt.Fprintln(w, "},") // close op |