]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: clean up ssa.Value memory arg usage
authorPhilip Hofer <phofer@umich.edu>
Fri, 3 Mar 2017 21:44:18 +0000 (13:44 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 9 Mar 2017 21:40:47 +0000 (21:40 +0000)
commitb0e91d836a0abd46899cf78fdd93303afcf6c637
tree161359a455652648f81b967f834be8fe39ece98d
parente471ad9189d1eba54c8cb5414c47e413cea78df2
cmd/compile: clean up ssa.Value memory arg usage

This change adds a method to replace expressions
of the form

   v.Args[len(v.Args)-1]

so that the code's intention to walk memory arguments
is explicit.

Passes toolstash-check.

Change-Id: I0c80d73bc00989dd3cdf72b4f2c8e1075a2515e0
Reviewed-on: https://go-review.googlesource.com/37757
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/schedule.go
src/cmd/compile/internal/ssa/tighten.go
src/cmd/compile/internal/ssa/value.go
src/cmd/compile/internal/ssa/writebarrier.go