]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile/internal/ssa: eliminate phis during deadcode removal
authorAlexandru Moșoi <mosoi@google.com>
Mon, 22 Feb 2016 16:14:53 +0000 (17:14 +0100)
committerAlexandru Moșoi <alexandru@mosoi.ro>
Tue, 23 Feb 2016 18:52:15 +0000 (18:52 +0000)
commit40f2b57e0b007aaabe2b6ec5650223d047cd1452
treeebbba00638a62aadfee791138fa2c1ceda324d8e
parentc17b6b488cbf448da374d576be0f921e655b00b1
[dev.ssa] cmd/compile/internal/ssa: eliminate phis during deadcode removal

While investigating the differences between 19710 (remove
tautological controls) and 12960 (bounds and nil propagation)
I observed that part of the wins of 19710 come from missed
opportunities for deadcode elimination due to phis.
See for example runtime.stackcacherelease. 19710 happens much
later than 12960 and has more chances to eliminate bounds.

Size of pkg/tool/linux_amd64/* excluding compile:

-this -12960 95882248
+this -12960 95880120
-this +12960 95581512
+this +12960 95555224

This change saves about 25k.

Change-Id: Id2f4e55fc92b71595842ce493c3ed527d424fe0e
Reviewed-on: https://go-review.googlesource.com/19728
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Alexandru Moșoi <alexandru@mosoi.ro>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/deadcode.go
src/cmd/compile/internal/ssa/phielim.go