Skip to content

Commit

Permalink
cmd/compile: clean up arm64 32bit pointer in Reverse
Browse files Browse the repository at this point in the history
Change-Id: I0751270c0f656a501b389f2e2bb0e959d6f5a0e6
Reviewed-on: https://go-review.googlesource.com/c/go/+/396054
Reviewed-by: Keith Randall <[email protected]>
Run-TryBot: Keith Randall <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Trust: Ian Lance Taylor <[email protected]>
  • Loading branch information
wdvxdr1123 authored and randall77 committed Mar 31, 2022
1 parent 913ecf4 commit 4050489
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cmd/compile/internal/ssagen/ssa.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4050489

Please sign in to comment.