[llvm] [LoopVectorize] Enable more early exit vectorisation tests (PR #117008)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 07:49:12 PST 2024
================
@@ -4123,7 +4138,8 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
// a bottom-test and a single exiting block. We'd have to handle the fact
// that not every instruction executes on the last iteration. This will
// require a lane mask which varies through the vector loop body. (TODO)
- if (TheLoop->getExitingBlock() != TheLoop->getLoopLatch()) {
+ if (Legal->hasUncountableEarlyExit() ||
----------------
david-arm wrote:
You're right, the latch should always be non-null.
https://github.com/llvm/llvm-project/pull/117008
More information about the llvm-commits
mailing list