[llvm] [VPlan] Port invalid cost remarks to VPlan. (PR #99322)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 17 06:31:17 PDT 2024
================
@@ -10188,13 +10227,17 @@ bool LoopVectorizePass::processLoop(Loop *L) {
// Plan how to best vectorize, return the best VF and its cost.
std::optional<VectorizationFactor> MaybeVF = LVP.plan(UserVF, UserIC);
+ if (ORE->allowExtraAnalysis(LV_NAME))
+ LVP.emitInvalidCostRemarks(ORE);
+
VectorizationFactor VF = VectorizationFactor::Disabled();
unsigned IC = 1;
bool AddBranchWeights =
hasBranchWeightMD(*L->getLoopLatch()->getTerminator());
GeneratedRTChecks Checks(*PSE.getSE(), DT, LI, TTI,
F->getDataLayout(), AddBranchWeights);
+
----------------
alexey-bataev wrote:
Remove new blank line
https://github.com/llvm/llvm-project/pull/99322
More information about the llvm-commits
mailing list