]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: clean up arm64 32bit pointer in Reverse
authorWayne Zuo <wdvxdr1123@gmail.com>
Sun, 27 Mar 2022 07:12:39 +0000 (15:12 +0800)
committerKeith Randall <khr@golang.org>
Thu, 31 Mar 2022 19:27:54 +0000 (19:27 +0000)
Change-Id: I0751270c0f656a501b389f2e2bb0e959d6f5a0e6
Reviewed-on: https://go-review.googlesource.com/c/go/+/396054
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Ian Lance Taylor <iant@golang.org>

src/cmd/compile/internal/ssagen/ssa.go

index a214a1e8f96fcb620091aae7009c1bf086ec665d..883772b341cef44b75a7b45ee99a688f0d21e293 100644 (file)
@@ -4496,9 +4496,6 @@ func InitTables() {
                sys.ARM64)
        addF("math/bits", "Reverse",
                func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value {
-                       if s.config.PtrSize == 4 {
-                               return s.newValue1(ssa.OpBitRev32, types.Types[types.TINT], args[0])
-                       }
                        return s.newValue1(ssa.OpBitRev64, types.Types[types.TINT], args[0])
                },
                sys.ARM64)