[LV][NFC] remove dead code in canFoldTailByMasking() (#190263)
Remove unused ReductionLiveOuts variable in `canFoldTailByMasking()`. The set was being populated with reduction loop exit instructions but was never actually used anywhere in the function.
This commit is contained in:
parent
6bf8279dc2
commit
c5a904946a
@ -2071,11 +2071,6 @@ bool LoopVectorizationLegality::canFoldTailByMasking() const {
|
||||
|
||||
LLVM_DEBUG(dbgs() << "LV: checking if tail can be folded by masking.\n");
|
||||
|
||||
SmallPtrSet<const Value *, 8> ReductionLiveOuts;
|
||||
|
||||
for (const auto &Reduction : getReductionVars())
|
||||
ReductionLiveOuts.insert(Reduction.second.getLoopExitInstr());
|
||||
|
||||
// The list of pointers that we can safely read and write to remains empty.
|
||||
SmallPtrSet<Value *, 8> SafePointers;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user