forked from OSchip/llvm-project
[SLP] Fix placement of debug statement (NFC)
By Ayal Zaks (ayal.zaks@intel.com) Differential Revision: http://reviews.llvm.org/D16976 llvm-svn: 260094
This commit is contained in:
parent
1ef2f6ecbe
commit
1a39a34eae
|
@ -1741,6 +1741,13 @@ int BoUpSLP::getSpillCost() {
|
|||
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)
|
||||
|
@ -1749,13 +1756,6 @@ int BoUpSLP::getSpillCost() {
|
|||
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());
|
||||
|
|
Loading…
Reference in New Issue