[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:
Hassnaa Hamdi 2026-04-05 12:59:32 +01:00 committed by GitHub
parent 6bf8279dc2
commit c5a904946a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;