mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove unnecessary conversions
Automated CL prepared by github.com/mdempsky/unconvert, except for reverting changes to ssa/rewritegeneric.go (generated file) and package big (vendored copy of math/big). Change-Id: I64dc4199f14077c7b6a2f334b12249d4a785eadd Reviewed-on: https://go-review.googlesource.com/20089 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
parent
2aa2da295f
commit
def1e7276a
26 changed files with 158 additions and 158 deletions
|
|
@ -2963,7 +2963,7 @@ func cgen_append(n, res *Node) {
|
|||
} else if w == 1 {
|
||||
Thearch.Gins(Thearch.Optoas(OADD, Types[Tptr]), &r2, &r1)
|
||||
} else {
|
||||
Thearch.Ginscon(Thearch.Optoas(OMUL, Types[TUINT]), int64(w), &r2)
|
||||
Thearch.Ginscon(Thearch.Optoas(OMUL, Types[TUINT]), w, &r2)
|
||||
Thearch.Gins(Thearch.Optoas(OADD, Types[Tptr]), &r2, &r1)
|
||||
}
|
||||
Regfree(&r2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue