diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/compile/internal/ssa/rewrite.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/rewrite.go b/src/cmd/compile/internal/ssa/rewrite.go index 4e8eb4d3b6..c617841ee8 100644 --- a/src/cmd/compile/internal/ssa/rewrite.go +++ b/src/cmd/compile/internal/ssa/rewrite.go @@ -646,8 +646,12 @@ func zeroUpper32Bits(x *Value, depth int) bool { OpAMD64ANDL, OpAMD64ANDLconst, OpAMD64ORL, OpAMD64ORLconst, OpAMD64XORL, OpAMD64XORLconst, OpAMD64NEGL, OpAMD64NOTL: return true - case OpArg, OpSelect0, OpSelect1: + case OpArg: return x.Type.Width == 4 + case OpSelect0, OpSelect1: + // Disabled for now. See issue 23305. + // TODO: we could look into the arg of the Select to decide. + return false case OpPhi: // Phis can use each-other as an arguments, instead of tracking visited values, // just limit recursion depth. |
