llvm-project
e5263e3e - [LV][NFC] Clean up tail-folding check for early-exit loops (#133931)

Commit
272 days ago
[LV][NFC] Clean up tail-folding check for early-exit loops (#133931) This patch moves the check for a single latch exit from computeMaxVF() to LoopVectorizationLegality::canFoldTailByMasking(), as it duplicates the logic when foldTailByMasking() returns false. It also updates the NoScalarEpilogueNeeded logic to return false for loops that are neither single-latch-exit nor early-exit. This avoids applying tail-folding in unsupported cases and prevents triggering assertions during analysis.
Author
Parents
Loading