Remove a redundant check before visit(succ).

This commit is contained in:
Dejan Mircevski 2016-01-19 11:49:37 -05:00
parent 57bbde4a99
commit a7e734962e

View File

@ -84,8 +84,7 @@ class ReadableOrderTraverser {
block->getParent().getParent().getInstruction(mergeId)->getBlock();
delayed_[mergeBlock] = true;
}
for (const auto succ : block->getSuccessors())
if (succ != mergeBlock) visit(succ);
for (const auto succ : block->getSuccessors()) visit(succ);
if (mergeBlock) {
delayed_[mergeBlock] = false;
visit(mergeBlock);