[clang] [llvm] [LV] Mask off possibly aliasing vector lanes (PR #100579)
Florian Hahn via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 06:03:44 PDT 2024
================
@@ -9838,16 +9902,33 @@ bool LoopVectorizePass::processLoop(Loop *L) {
ElementCount UserVF = Hints.getWidth();
unsigned UserIC = Hints.getInterleave();
+ bool AddBranchWeights =
+ hasBranchWeightMD(*L->getLoopLatch()->getTerminator());
+ GeneratedRTChecks Checks(*PSE.getSE(), DT, LI, TTI, F->getDataLayout(),
+ AddBranchWeights);
+
+ // VPlan needs the aliasing pointers as Values and not SCEVs, so expand them
----------------
fhahn wrote:
If expanded SCEVs are needed in VPlan they should be expanded during VPlan execution using VPExpandSCEVRecioe if possible
https://github.com/llvm/llvm-project/pull/100579
More information about the cfe-commits
mailing list