Skip to content

Commit 222e861

Browse files
committed
[SLP] Rearrange fields in ScheduleData for density [NFC]
1 parent b3e63ee commit 222e861

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2543,6 +2543,12 @@ class BoUpSLP {
25432543

25442544
Instruction *Inst = nullptr;
25452545

2546+
/// Opcode of the current instruction in the schedule data.
2547+
Value *OpValue = nullptr;
2548+
2549+
/// The TreeEntry that this instruction corresponds to.
2550+
TreeEntry *TE = nullptr;
2551+
25462552
/// Points to the head in an instruction bundle (and always to this for
25472553
/// single instructions).
25482554
ScheduleData *FirstInBundle = nullptr;
@@ -2575,18 +2581,12 @@ class BoUpSLP {
25752581
/// Note that this is negative as long as Dependencies is not calculated.
25762582
int UnscheduledDeps = InvalidDeps;
25772583

2584+
/// The lane of this node in the TreeEntry.
2585+
int Lane = -1;
2586+
25782587
/// True if this instruction is scheduled (or considered as scheduled in the
25792588
/// dry-run).
25802589
bool IsScheduled = false;
2581-
2582-
/// Opcode of the current instruction in the schedule data.
2583-
Value *OpValue = nullptr;
2584-
2585-
/// The TreeEntry that this instruction corresponds to.
2586-
TreeEntry *TE = nullptr;
2587-
2588-
/// The lane of this node in the TreeEntry.
2589-
int Lane = -1;
25902590
};
25912591

25922592
#ifndef NDEBUG

0 commit comments

Comments
 (0)