[llvm] [LV][VPlan] Introduce VPScalarStore recipe to handle scalar stores in exit block. (PR #93148)
    Mel Chen via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jul 31 01:22:56 PDT 2024
    
    
  
================
@@ -1927,6 +1921,24 @@ void VPScalarCastRecipe ::print(raw_ostream &O, const Twine &Indent,
 }
 #endif
 
+void VPScalarStoreRecipe::execute(VPTransformState &State) {
+  IRBuilderBase &Builder = State.Builder;
+  Value *StoredVal = State.get(getStoredVal(), 0, /*IsScalar*/ true);
----------------
Mel-Chen wrote:
ee8ce9f65a27313977403fd74f84292bac40d7ea
Check operands in the ::execute function. 
Initially, I attempted to check the operand in the constructor, but given the current application, the stored value is only correctly assigned in FixReduction.
https://github.com/llvm/llvm-project/pull/93148
    
    
More information about the llvm-commits
mailing list