[llvm] [VPlan] Fix `pseudoprobe` being treated a vector intrinsic (PR #185347)

Henry Jiang via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 10 12:49:24 PDT 2026


================
@@ -92,7 +92,13 @@ bool VPlanTransforms::tryToConvertVPInstructionsToVPRecipes(
                                            Ingredient.getDebugLoc());
         } else if (CallInst *CI = dyn_cast<CallInst>(Inst)) {
           Intrinsic::ID VectorID = getVectorIntrinsicIDForCall(CI, &TLI);
-          if (VectorID == Intrinsic::not_intrinsic)
+          if (VectorID == Intrinsic::not_intrinsic ||
+              VectorID == Intrinsic::assume ||
----------------
mustartt wrote:

@fhahn I took a closer look, we can emit these as `VPlanReplicateRecipe` with `IsSingular=true`. The inner loop does this already. 
Updated code to match

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


More information about the llvm-commits mailing list