[llvm] [LoopIdiomVectorize] Bail when vectorization is disabled (PR #181142)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 00:54:09 PST 2026
================
@@ -199,7 +204,17 @@ PreservedAnalyses LoopIdiomVectorizePass::run(Loop &L, LoopAnalysisManager &AM,
if (ByteCmpVF.getNumOccurrences())
BCVF = ByteCmpVF;
- LoopIdiomVectorize LIV(VecStyle, BCVF, &AR.DT, &AR.LI, &AR.TTI, DL);
+ Function &F = *L.getHeader()->getParent();
+ auto &FAMP = AM.getResult<FunctionAnalysisManagerLoopProxy>(L, AR);
+ auto *ORE = FAMP.getCachedResult<OptimizationRemarkEmitterAnalysis>(F);
+
+ std::optional<OptimizationRemarkEmitter> ORELocal;
----------------
fhahn wrote:
Is there any reason we cannot retrieve ORE always from the pass manager?
https://github.com/llvm/llvm-project/pull/181142
More information about the llvm-commits
mailing list