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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 13:18:25 PDT 2024


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

only used in assertion, will need to by sunk into assert (preferable) or mark as potentially unused to avoid warning

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


More information about the llvm-commits mailing list