wazevo(ssa): resets loop header flag (#1828)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
This commit is contained in:
@@ -282,11 +282,11 @@ func resetBasicBlock(bb *basicBlock) {
|
|||||||
bb.success = bb.success[:0]
|
bb.success = bb.success[:0]
|
||||||
bb.invalid, bb.sealed = false, false
|
bb.invalid, bb.sealed = false, false
|
||||||
bb.singlePred = nil
|
bb.singlePred = nil
|
||||||
// TODO: reuse the map!
|
|
||||||
bb.unknownValues = make(map[Variable]Value)
|
bb.unknownValues = make(map[Variable]Value)
|
||||||
bb.lastDefinitions = make(map[Variable]Value)
|
bb.lastDefinitions = make(map[Variable]Value)
|
||||||
bb.reversePostOrder = -1
|
bb.reversePostOrder = -1
|
||||||
bb.loopNestingForestChildren = bb.loopNestingForestChildren[:0]
|
bb.loopNestingForestChildren = bb.loopNestingForestChildren[:0]
|
||||||
|
bb.loopHeader = false
|
||||||
}
|
}
|
||||||
|
|
||||||
// addPred adds a predecessor to this block specified by the branch instruction.
|
// addPred adds a predecessor to this block specified by the branch instruction.
|
||||||
|
|||||||
Reference in New Issue
Block a user