[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:
parent
b2811e50f9
commit
fd7f40961b
|
@ -181,6 +181,7 @@ addInstructionRoots(ScopStmt *Stmt,
|
|||
for (auto *BB : Stmt->getRegion()->blocks())
|
||||
for (Instruction &Inst : *BB)
|
||||
RootInsts.emplace_back(Stmt, &Inst);
|
||||
return;
|
||||
}
|
||||
|
||||
for (Instruction *Inst : Stmt->getInstructions())
|
||||
|
|
Loading…
Reference in New Issue