Skip to content

Commit

Permalink
cmd/compile: remove go115shortcircuitPhis
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cherrymui committed Oct 22, 2020
1 parent 5d9b66c commit ea37a65
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/cmd/compile/internal/ssa/shortcircuit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ea37a65

Please sign in to comment.