From 40504892c1720a3a36d82c492fd2302b7ccb870a Mon Sep 17 00:00:00 2001 From: Wayne Zuo Date: Sun, 27 Mar 2022 15:12:39 +0800 Subject: [PATCH] cmd/compile: clean up arm64 32bit pointer in Reverse Change-Id: I0751270c0f656a501b389f2e2bb0e959d6f5a0e6 Reviewed-on: https://go-review.googlesource.com/c/go/+/396054 Reviewed-by: Keith Randall Run-TryBot: Keith Randall TryBot-Result: Gopher Robot Trust: Ian Lance Taylor --- src/cmd/compile/internal/ssagen/ssa.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cmd/compile/internal/ssagen/ssa.go b/src/cmd/compile/internal/ssagen/ssa.go index a214a1e8f96..883772b341c 100644 --- a/src/cmd/compile/internal/ssagen/ssa.go +++ b/src/cmd/compile/internal/ssagen/ssa.go @@ -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)