Commit b5cb31c9 authored by guruhegde's avatar guruhegde

Minor refactor

parent 88102c10
......@@ -32,15 +32,6 @@ void PacketPathAnalysis::calculate() {
BlockToMaskID[*B] = ++MaskIDCounter;
}
// Create new mask id for each successor block.
// Paths diverge from BB
if (SuccSize > 1) {
for (auto * SuccBB : successors(*B)) {
BlockToMaskID[SuccBB] = ++MaskIDCounter;
}
continue;
}
if (SuccSize == 1) {
if (PredSize == 1) {
BlockToMaskID[*succ_begin(*B)] = MaskIDCounter;
......@@ -49,6 +40,15 @@ void PacketPathAnalysis::calculate() {
BlockToMaskID[*succ_begin(*B)] = ++MaskIDCounter;
}
}
// Create new mask id for each successor block.
// Paths diverge from BB
if (SuccSize > 1) {
for (auto * SuccBB : successors(*B)) {
BlockToMaskID[SuccBB] = ++MaskIDCounter;
}
continue;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment