[llvm] [VPlanTransform] Rename and narrow simplifyRecipe to VPSingleDefRecipe. nfc (PR #165568)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 29 07:01:08 PDT 2025


================
@@ -1057,54 +1057,51 @@ static VPValue *tryToFoldLiveIns(VPSingleDefRecipe &R,
   return nullptr;
 }
 
-/// Try to simplify recipe \p R.
-static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
-  VPlan *Plan = R.getParent()->getPlan();
-
-  auto *Def = dyn_cast<VPSingleDefRecipe>(&R);
-  if (!Def)
-    return;
+/// Try to simplify VPSingleDefRecipe \p Def.
+static void simplifySingleDefRecipe(VPSingleDefRecipe &Def,
----------------
artagnon wrote:

Not sure the rename is necessary, but looks good otherwise.

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


More information about the llvm-commits mailing list