]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove go115shortcircuitPhis
authorCherry Zhang <cherryyz@google.com>
Thu, 22 Oct 2020 01:08:39 +0000 (21:08 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 22 Oct 2020 15:29:50 +0000 (15:29 +0000)
Change-Id: Ib2697ebfcc14a01ab1f793cddcbf69180ffc49a2
Reviewed-on: https://go-review.googlesource.com/c/go/+/264341
Trust: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/shortcircuit.go

index c5df457c4e2e7ce1f4f10262ff89d25143564182..7b4ee2e81c297a0306f6834f1f7b4d379ca05f70 100644 (file)
@@ -261,11 +261,6 @@ func shortcircuitBlock(b *Block) bool {
 // and the CFG modifications must not proceed.
 // The returned function assumes that shortcircuitBlock has completed its CFG modifications.
 func shortcircuitPhiPlan(b *Block, ctl *Value, cidx int, ti int64) func(*Value, int) {
-       const go115shortcircuitPhis = true
-       if !go115shortcircuitPhis {
-               return nil
-       }
-
        // t is the "taken" branch: the successor we always go to when coming in from p.
        t := b.Succs[ti].b
        // u is the "untaken" branch: the successor we never go to when coming in from p.