diff options
author | Alberto Donizetti <alb.donizetti@gmail.com> | 2020-10-27 14:04:10 +0100 |
---|---|---|
committer | Alberto Donizetti <alb.donizetti@gmail.com> | 2020-10-27 20:04:19 +0000 |
commit | de2d1c3fe242aed10ad374abf784cca89fecac45 (patch) | |
tree | f289efbf1c0b1b143aaf4e411d745c57ce5419d9 /src/cmd/compile/internal/ssa/rewrite386.go | |
parent | 5c1122b52895c1d7f2d41ea16d354bce636496d0 (diff) | |
download | go-de2d1c3fe242aed10ad374abf784cca89fecac45.tar.gz go-de2d1c3fe242aed10ad374abf784cca89fecac45.zip |
cmd/compile: replace int32(b2i(x)) with b2i32(x) in rules
Change-Id: I7fbb0c1ead6e29a7445c8ab43f7050947597f3e8
Reviewed-on: https://go-review.googlesource.com/c/go/+/265497
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/rewrite386.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/rewrite386.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ssa/rewrite386.go b/src/cmd/compile/internal/ssa/rewrite386.go index 0f08160f44..afce14fa76 100644 --- a/src/cmd/compile/internal/ssa/rewrite386.go +++ b/src/cmd/compile/internal/ssa/rewrite386.go @@ -8696,11 +8696,11 @@ func rewriteValue386_OpConst8(v *Value) bool { } func rewriteValue386_OpConstBool(v *Value) bool { // match: (ConstBool [c]) - // result: (MOVLconst [int32(b2i(c))]) + // result: (MOVLconst [b2i32(c)]) for { c := auxIntToBool(v.AuxInt) v.reset(Op386MOVLconst) - v.AuxInt = int32ToAuxInt(int32(b2i(c))) + v.AuxInt = int32ToAuxInt(b2i32(c)) return true } } |