[polly] r309453 - [VirtualInstruction] Do not iterate over a region statement's instruction list. NFC.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 28 16:22:23 PDT 2017
Author: meinersbur
Date: Fri Jul 28 16:22:23 2017
New Revision: 309453
URL: http://llvm.org/viewvc/llvm-project?rev=309453&view=rev
Log:
[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.
Modified:
polly/trunk/lib/Support/VirtualInstruction.cpp
Modified: polly/trunk/lib/Support/VirtualInstruction.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/VirtualInstruction.cpp?rev=309453&r1=309452&r2=309453&view=diff
==============================================================================
--- polly/trunk/lib/Support/VirtualInstruction.cpp (original)
+++ polly/trunk/lib/Support/VirtualInstruction.cpp Fri Jul 28 16:22:23 2017
@@ -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())
More information about the llvm-commits
mailing list