]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile/ssa: implement constant booleans
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 6 Jul 2015 21:13:17 +0000 (14:13 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 6 Jul 2015 21:54:10 +0000 (21:54 +0000)
commit7d10a2c04a28ac09448a3a890141a56870f86232
tree7c535989df2e42327ec16cd6e3d9d42ad17864b9
parentcc3f031a319195928e2dbf2b65bff59e8d9226ca
[dev.ssa] cmd/compile/ssa: implement constant booleans

The removal of if false { ... } blocks in the opt
pass exposed that removePredecessor needed
to do more cleaning, on pain of failing later
consistency checks.

Change-Id: I45d4ff7e1f7f1486fdd99f867867ce6ea006a288
Reviewed-on: https://go-review.googlesource.com/11879
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/deadcode.go
src/cmd/compile/internal/ssa/gen/rulegen.go
src/cmd/compile/internal/ssa/nilcheck.go
src/cmd/compile/internal/ssa/rewritegeneric.go