[llvm] [LV] Reuse VPReplicateRecipe to handle scalar stores in exit block. (PR #106342)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 02:44:30 PDT 2024


================
@@ -9304,6 +9282,7 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
       continue;
 
     const RecurrenceDescriptor &RdxDesc = PhiR->getRecurrenceDescriptor();
+    StoreInst *IntermediateStore = RdxDesc.IntermediateStore;
----------------
Mel-Chen wrote:

It is not used in assertion. It used in `OrigExitingVPV->replaceUsesWithIf`.
Would you like to move it closer to where it will be used?

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


More information about the llvm-commits mailing list