[VirtualInstruction] Do not iterate over a region statement's instruction list. NFC.

It should be empty anyways. In this case it would even be redundant
because we just all all instructions in region statements.

llvm-svn: 309453
This commit is contained in:
Michael Kruse 2017-07-28 23:22:23 +00:00
parent b2811e50f9
commit fd7f40961b
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ addInstructionRoots(ScopStmt *Stmt,
for (auto *BB : Stmt->getRegion()->blocks()) for (auto *BB : Stmt->getRegion()->blocks())
for (Instruction &Inst : *BB) for (Instruction &Inst : *BB)
RootInsts.emplace_back(Stmt, &Inst); RootInsts.emplace_back(Stmt, &Inst);
return;
} }
for (Instruction *Inst : Stmt->getInstructions()) for (Instruction *Inst : Stmt->getInstructions())