aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/rewrite386.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2019-08-28 12:42:37 +0000
committerBryan C. Mills <bcmills@google.com>2019-08-28 12:57:59 +0000
commit372b0eed175b88ba2654607b05a36416f08c4cea (patch)
tree70cf67d1f084fc93cfb4375ff2c077959c3e5cc6 /src/cmd/compile/internal/ssa/rewrite386.go
parentbc92fe8b340c302db970fe8a42c8fcf6ccf7141a (diff)
downloadgo-372b0eed175b88ba2654607b05a36416f08c4cea.tar.gz
go-372b0eed175b88ba2654607b05a36416f08c4cea.zip
Revert "cmd/compile: optimize 386's math.bits.TrailingZeros16"
This reverts CL 189277. Reason for revert: broke 32-bit builders. Updates #33902 Change-Id: Ie5f180d0371a90e5057ed578c334372e5fc3a286 Reviewed-on: https://go-review.googlesource.com/c/go/+/192097 Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Diffstat (limited to 'src/cmd/compile/internal/ssa/rewrite386.go')
-rw-r--r--src/cmd/compile/internal/ssa/rewrite386.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/cmd/compile/internal/ssa/rewrite386.go b/src/cmd/compile/internal/ssa/rewrite386.go
index 2336561560..812aa9420d 100644
--- a/src/cmd/compile/internal/ssa/rewrite386.go
+++ b/src/cmd/compile/internal/ssa/rewrite386.go
@@ -360,8 +360,6 @@ func rewriteValue386(v *Value) bool {
return rewriteValue386_OpConstBool_0(v)
case OpConstNil:
return rewriteValue386_OpConstNil_0(v)
- case OpCtz16:
- return rewriteValue386_OpCtz16_0(v)
case OpCvt32Fto32:
return rewriteValue386_OpCvt32Fto32_0(v)
case OpCvt32Fto64F:
@@ -20785,22 +20783,6 @@ func rewriteValue386_OpConstNil_0(v *Value) bool {
return true
}
}
-func rewriteValue386_OpCtz16_0(v *Value) bool {
- b := v.Block
- typ := &b.Func.Config.Types
- // match: (Ctz16 x)
- // cond:
- // result: (BSFL (ORLconst <typ.UInt32> [0x10000] x))
- for {
- x := v.Args[0]
- v.reset(Op386BSFL)
- v0 := b.NewValue0(v.Pos, Op386ORLconst, typ.UInt32)
- v0.AuxInt = 0x10000
- v0.AddArg(x)
- v.AddArg(v0)
- return true
- }
-}
func rewriteValue386_OpCvt32Fto32_0(v *Value) bool {
// match: (Cvt32Fto32 x)
// cond: