[llvm] [VPlan] Introduce VPGEPInstruction (PR #193510)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 11 04:52:14 PDT 2026


================
@@ -312,9 +312,8 @@ static bool sinkScalarOperands(VPlan &Plan) {
     if (!Candidate)
       return;
 
-    // We only know how to sink VPReplicateRecipes and VPScalarIVStepsRecipes
-    // for now.
-    if (!isa<VPReplicateRecipe, VPScalarIVStepsRecipe>(Candidate))
+    if (!isa<VPReplicateRecipe, VPScalarIVStepsRecipe, VPGEPInstruction>(
+            Candidate))
----------------
artagnon wrote:

The general pattern that this patch can benefit from: https://github.com/llvm/llvm-project/pull/208906.

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


More information about the llvm-commits mailing list