]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: rewrite if not
authorTodd Neal <todd@tneal.org>
Thu, 23 Jul 2015 23:44:09 +0000 (18:44 -0500)
committerTodd Neal <todd@tneal.org>
Sun, 26 Jul 2015 02:10:45 +0000 (02:10 +0000)
commit52d76f7a6a02cf5834251a4ceadc686a9f83ac81
treea3d76390f73a74e3472c5027b006d837653bdad3
parent7e74e43366d58844cb30f382374e6447b93ac706
[dev.ssa] cmd/compile: rewrite if not

Rewrite if !cond by swapping the branches and removing the not.

Change-Id: If3af1bac02bfc566faba872a8c7f7e5ce38e9f58
Reviewed-on: https://go-review.googlesource.com/12610
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go