[PATCH] D105020: [SLP]Improve graph reordering.
    Simon Pilgrim via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jul  5 09:33:19 PDT 2021
    
    
  
RKSimon added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:2973
+/// Tracks the state we can represent the loads in the given sequence.
+enum class LoadsState { Gather, Vectorize, ScatterVectorize };
+} // anonymous namespace
----------------
This is very similar to the EntryState enum - merge them?
================
Comment at: llvm/test/Transforms/SLPVectorizer/X86/addsub.ll:347
 ;  In the above code we can swap the 1st and 2nd operation as fadd is commutative
 ;  but not 2nd or 4th as fsub is not commutative.
 
----------------
Update comment? I had to do something similar on D103925, although the wording here might be different.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105020/new/
https://reviews.llvm.org/D105020
    
    
More information about the llvm-commits
mailing list