[llvm] [LoopVectorize] Add an option to test potential issues with VPlan (PR #121154)

Danila Malyutin via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 15 08:34:16 PDT 2025


================
@@ -3448,8 +3453,9 @@ bool LoopVectorizationCostModel::isPredicatedInst(Instruction *I) const {
   // If predication is not needed, avoid it.
   // TODO: We can use the loop-preheader as context point here and get
   // context sensitive reasoning for isSafeToSpeculativelyExecute.
+  Instruction *CtxI = CheckSpeculatabilityAtUse ? I->getNextNode() : nullptr;
----------------
danilaml wrote:

Ping. Any ideas on how to better trigger this scenario for testing?

https://github.com/llvm/llvm-project/pull/121154


More information about the llvm-commits mailing list