projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2811e5
)
[VirtualInstruction] Do not iterate over a region statement's instruction list. NFC.
author
Michael Kruse
<llvm@meinersbur.de>
Fri, 28 Jul 2017 23:22:23 +0000
(23:22 +0000)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/polly/lib/Support/VirtualInstruction.cpp
b/polly/lib/Support/VirtualInstruction.cpp
index
1d34efb
..
a0fecd1
100644
(file)
--- a/
polly/lib/Support/VirtualInstruction.cpp
+++ b/
polly/lib/Support/VirtualInstruction.cpp
@@
-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())