[PATCH] D16976: [SLP] Fix placement of debug statement (NFC)
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 8 06:16:06 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL260094: [SLP] Fix placement of debug statement (NFC) (authored by ibreger).
Changed prior to commit:
http://reviews.llvm.org/D16976?vs=47154&id=47185#toc
Repository:
rL LLVM
http://reviews.llvm.org/D16976
Files:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Index: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -1741,21 +1741,21 @@
continue;
}
+ // Update LiveValues.
+ LiveValues.erase(PrevInst);
+ for (auto &J : PrevInst->operands()) {
+ if (isa<Instruction>(&*J) && ScalarToTreeEntry.count(&*J))
+ LiveValues.insert(cast<Instruction>(&*J));
+ }
+
DEBUG(
dbgs() << "SLP: #LV: " << LiveValues.size();
for (auto *X : LiveValues)
dbgs() << " " << X->getName();
dbgs() << ", Looking at ";
Inst->dump();
);
- // Update LiveValues.
- LiveValues.erase(PrevInst);
- for (auto &J : PrevInst->operands()) {
- if (isa<Instruction>(&*J) && ScalarToTreeEntry.count(&*J))
- LiveValues.insert(cast<Instruction>(&*J));
- }
-
// Now find the sequence of instructions between PrevInst and Inst.
BasicBlock::reverse_iterator InstIt(Inst->getIterator()),
PrevInstIt(PrevInst->getIterator());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16976.47185.patch
Type: text/x-patch
Size: 1144 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160208/9d3377d2/attachment.bin>
More information about the llvm-commits
mailing list