[llvm] [SLP] Use named structs in vectorizeStores() (NFC) (PR #132781)
    Alexey Bataev via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Apr  3 06:12:26 PDT 2025
    
    
  
================
@@ -19994,6 +19994,38 @@ static bool checkTreeSizes(ArrayRef<std::pair<unsigned, unsigned>> Sizes,
   return Dev * 96 / (Mean * Mean) == 0;
 }
 
+namespace {
+
+/// A group of instructions that we'll try to bundle together using vector ops.
+/// They are ordered using the signed distance of their address operand to the
+/// address of this group's BaseInstr.
+struct RelatedStoreInsts {
----------------
alexey-bataev wrote:
Make it a class and make BaseInstrIdx private
https://github.com/llvm/llvm-project/pull/132781
    
    
More information about the llvm-commits
mailing list