[llvm] [VPlan] Remove VPVectorPointer for part 0 after unrolling. (PR #149735)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 21 01:26:14 PDT 2025


================
@@ -1015,6 +1015,12 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
     if (Op->isLiveIn())
       PredPHI->replaceAllUsesWith(Op);
   }
+  if (auto *VecPtr = dyn_cast<VPVectorPointerRecipe>(&R)) {
+    if (VecPtr->getParent()->getPlan()->isUnrolled() && VecPtr->isPart0()) {
----------------
Mel-Chen wrote:

+1

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


More information about the llvm-commits mailing list