[llvm] [LV] Vectorize early exit loops with stores using masking (PR #178454)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 13 01:13:38 PDT 2026
================
@@ -1911,7 +1911,11 @@ bool LoopVectorizationLegality::canUncountableExitConditionLoadBeMoved(
if (&I == Load)
continue;
- if (I.mayWriteToMemory()) {
+ if (I.mayReadOrWriteMemory()) {
+ // We need to mask all other memory ops.
----------------
fhahn wrote:
Sounds good!
https://github.com/llvm/llvm-project/pull/178454
More information about the llvm-commits
mailing list