[llvm] 222e861 - [SLP] Rearrange fields in ScheduleData for density [NFC]

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 23 12:33:56 PST 2022


Author: Philip Reames
Date: 2022-02-23T12:33:43-08:00
New Revision: 222e8610f1372783e49405fec9208000b0b39bdb

URL: https://github.com/llvm/llvm-project/commit/222e8610f1372783e49405fec9208000b0b39bdb
DIFF: https://github.com/llvm/llvm-project/commit/222e8610f1372783e49405fec9208000b0b39bdb.diff

LOG: [SLP] Rearrange fields in ScheduleData for  density [NFC]

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 96ab621e89f1..921662ad6cb8 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -2543,6 +2543,12 @@ class BoUpSLP {
 
     Instruction *Inst = nullptr;
 
+    /// Opcode of the current instruction in the schedule data.
+    Value *OpValue = nullptr;
+
+    /// The TreeEntry that this instruction corresponds to.
+    TreeEntry *TE = nullptr;
+
     /// Points to the head in an instruction bundle (and always to this for
     /// single instructions).
     ScheduleData *FirstInBundle = nullptr;
@@ -2575,18 +2581,12 @@ class BoUpSLP {
     /// Note that this is negative as long as Dependencies is not calculated.
     int UnscheduledDeps = InvalidDeps;
 
+    /// The lane of this node in the TreeEntry.
+    int Lane = -1;
+
     /// True if this instruction is scheduled (or considered as scheduled in the
     /// dry-run).
     bool IsScheduled = false;
-
-    /// Opcode of the current instruction in the schedule data.
-    Value *OpValue = nullptr;
-
-    /// The TreeEntry that this instruction corresponds to.
-    TreeEntry *TE = nullptr;
-
-    /// The lane of this node in the TreeEntry.
-    int Lane = -1;
   };
 
 #ifndef NDEBUG


        


More information about the llvm-commits mailing list