Skip to content

Commit e1935a2

Browse files
committed
Revert "[SLP][NFC]Improve dump of the ScheduleData, NFC"
This reverts commit 108e6bc to fix error revealed by buildbots https://lab.llvm.org/buildbot/#/builders/159/builds/15888.
1 parent fc4d871 commit e1935a2

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3997,28 +3997,23 @@ class BoUpSLP {
39973997
return Sum;
39983998
}
39993999

4000-
void dump(raw_ostream &OS) const {
4001-
if (isPartOfBundle()) {
4002-
if (!isSchedulingEntity()) {
4003-
OS << "/ " << *Inst << ", part of " << *FirstInBundle;
4004-
return;
4005-
}
4006-
OS << '[' << *Inst;
4000+
void dump(raw_ostream &os) const {
4001+
if (!isSchedulingEntity()) {
4002+
os << "/ " << *Inst;
4003+
} else if (NextInBundle) {
4004+
os << '[' << *Inst;
40074005
ScheduleData *SD = NextInBundle;
40084006
while (SD) {
4009-
OS << ';' << *SD->Inst;
4007+
os << ';' << *SD->Inst;
40104008
SD = SD->NextInBundle;
40114009
}
4012-
OS << ']';
4010+
os << ']';
40134011
} else {
4014-
OS << *Inst;
4012+
os << *Inst;
40154013
}
40164014
}
40174015

4018-
LLVM_DUMP_METHOD void dump() const {
4019-
dump(dbgs());
4020-
dbgs() << '\n';
4021-
}
4016+
LLVM_DUMP_METHOD void dump() const { dump(dbgs()); }
40224017

40234018
Instruction *Inst = nullptr;
40244019

0 commit comments

Comments
 (0)