]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove empty branches
authorYury Smolsky <yury@smolsky.by>
Fri, 27 Jul 2018 21:26:42 +0000 (00:26 +0300)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 20 Aug 2018 13:42:37 +0000 (13:42 +0000)
Change-Id: Id87d9f55d1714fc553f5b1a9cba0f2fe348dad3e
Reviewed-on: https://go-review.googlesource.com/126396
Run-TryBot: Yury Smolsky <yury@smolsky.by>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/debug.go
src/cmd/compile/internal/ssa/redblack32_test.go

index becee358b6d50467a581338294c083ee1bb6c84c..c1fbdcc5174e4a4548c7d8709e333d1a26c8ca6b 100644 (file)
@@ -535,8 +535,6 @@ func (state *debugState) mergePredecessors(b *Block, blockLocs []*BlockDebug) ([
        }
 
        if len(preds) == 0 {
-               if state.loggingEnabled {
-               }
                state.currentState.reset(nil)
                return nil, true
        }
@@ -854,7 +852,6 @@ func (state *debugState) buildLocationLists(blockLocs []*BlockDebug) {
                        }
                        state.changedVars.clear()
                }
-
        }
 
        if state.loggingEnabled {
@@ -914,8 +911,6 @@ func (state *debugState) updateVar(varID VarID, v *Value, curLoc []VarLoc) {
        for i, slot := range state.varSlots[varID] {
                pending.pieces[i] = curLoc[slot]
        }
-       return
-
 }
 
 // writePendingEntry writes out the pending entry for varID, if any,
index 6d72a3eee5f8001b79ed128768749c571655e7fd..1ec29760728daea2dba0706316d57ae421354f0e 100644 (file)
@@ -175,8 +175,6 @@ func allRBT32Ops(te *testing.T, x []int32) {
                if s != "" {
                        te.Errorf("Tree consistency problem at %v", s)
                        return
-               } else {
-                       // fmt.Printf("%s", t.DebugString())
                }
        }