]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove unused offset calculation in ssagen#rtcall
authorJorropo <jorropo.pgm@gmail.com>
Wed, 13 Apr 2022 00:32:15 +0000 (00:32 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 13 Apr 2022 20:30:44 +0000 (20:30 +0000)
This offR accumulation isn't used and some really similar code is done
later in the Load results block.

Change-Id: I2f77a7bfd568e7e5eb9fc519e7c552401b3af9b8
GitHub-Last-Rev: 2c91e5c8987d21203c494f278ff1e05aa3941211
GitHub-Pull-Request: golang/go#52316
Reviewed-on: https://go-review.googlesource.com/c/go/+/400094
Run-TryBot: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/ssagen/ssa.go

index bd0b9250196ab35e4c3ee6d6c50c885ec8a244a9..7da145e08db2786e9cb1f2e937730fce426d43b1 100644 (file)
@@ -5535,13 +5535,6 @@ func (s *state) rtcall(fn *obj.LSym, returns bool, results []*types.Type, args .
        }
        off = types.Rnd(off, int64(types.RegSize))
 
-       // Accumulate results types and offsets
-       offR := off
-       for _, t := range results {
-               offR = types.Rnd(offR, t.Alignment())
-               offR += t.Size()
-       }
-
        // Issue call
        var call *ssa.Value
        aux := ssa.StaticAuxCall(fn, s.f.ABIDefault.ABIAnalyzeTypes(nil, callArgTypes, results))