wazevo(ssa): resets loop header flag (#1828)

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
This commit is contained in:
Takeshi Yoneda
2023-11-02 14:33:39 +09:00
committed by GitHub
parent 9841c5fc04
commit d3b83a596c

View File

@@ -282,11 +282,11 @@ func resetBasicBlock(bb *basicBlock) {
bb.success = bb.success[:0]
bb.invalid, bb.sealed = false, false
bb.singlePred = nil
// TODO: reuse the map!
bb.unknownValues = make(map[Variable]Value)
bb.lastDefinitions = make(map[Variable]Value)
bb.reversePostOrder = -1
bb.loopNestingForestChildren = bb.loopNestingForestChildren[:0]
bb.loopHeader = false
}
// addPred adds a predecessor to this block specified by the branch instruction.