[VirtualInstruction] Do not iterate over a region statement's instruction list. NFC.
authorMichael Kruse <llvm@meinersbur.de>
Fri, 28 Jul 2017 23:22:23 +0000 (23:22 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 28 Jul 2017 23:22:23 +0000 (23:22 +0000)
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

polly/lib/Support/VirtualInstruction.cpp

index 1d34efb..a0fecd1 100644 (file)
@@ -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())