]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/internal/ssa: add deadstore pass
authorKeith Randall <khr@golang.org>
Tue, 26 May 2015 21:43:25 +0000 (14:43 -0700)
committerKeith Randall <khr@golang.org>
Thu, 4 Jun 2015 23:03:41 +0000 (23:03 +0000)
commit8d32360bddaafb4e8eafe0e57065b4883b4ec55f
treebd509f72447a920881188b023dabc2bbe8c90e76
parent1114a76ae6081242c38614aeb4ff9c37b8be75c4
[dev.ssa] cmd/internal/ssa: add deadstore pass

Eliminate dead stores.  Dead stores are those which are
unconditionally followed by another store to the same location, with
no intervening load.

Just a simple intra-block implementation for now.

Change-Id: I2bf54e3a342608fc4e01edbe1b429e83f24764ab
Reviewed-on: https://go-review.googlesource.com/10386
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/deadstore.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/deadstore_test.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/op.go