]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: Mark ADD[Q|L]const as rematerializeable
authorIlya Tocar <ilya.tocar@intel.com>
Wed, 9 Aug 2017 18:43:34 +0000 (13:43 -0500)
committerIlya Tocar <ilya.tocar@intel.com>
Mon, 28 Aug 2017 17:30:40 +0000 (17:30 +0000)
commit7dd279013b8da9fac12a97607b53a0a607648b44
tree8c6abf2dee93a669f40c48d5b8944b31d57ac9c7
parent9afec99dc2e354811ea4cf5ba2e2a7f9a5a8f1e4
cmd/compile/internal/ssa: Mark ADD[Q|L]const as rematerializeable

We can rematerialize only ops that have SP or SB as their only argument.
There are some ADDQconst(SP) that can be rematerialized, but are spilled/filled instead,
so mark addconst as rematerializeable. This shaves ~1kb from go tool.

Change-Id: Ib4cf4fe5f2ec9d3d7e5f0f77f1193eba66ca2f08
Reviewed-on: https://go-review.googlesource.com/54393
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/opGen.go