Skip to content

Commit

Permalink
Revert "[SLP][NFC]Improve dump of the ScheduleData, NFC"
Browse files Browse the repository at this point in the history
This reverts commit 108e6bc to fix
error revealed by buildbots https://lab.llvm.org/buildbot/#/builders/159/builds/15888.
  • Loading branch information
alexey-bataev authored and joaosaffran committed Feb 14, 2025
1 parent 2e30b20 commit 4e755ee
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3997,28 +3997,23 @@ class BoUpSLP {
return Sum;
}

void dump(raw_ostream &OS) const {
if (isPartOfBundle()) {
if (!isSchedulingEntity()) {
OS << "/ " << *Inst << ", part of " << *FirstInBundle;
return;
}
OS << '[' << *Inst;
void dump(raw_ostream &os) const {
if (!isSchedulingEntity()) {
os << "/ " << *Inst;
} else if (NextInBundle) {
os << '[' << *Inst;
ScheduleData *SD = NextInBundle;
while (SD) {
OS << ';' << *SD->Inst;
os << ';' << *SD->Inst;
SD = SD->NextInBundle;
}
OS << ']';
os << ']';
} else {
OS << *Inst;
os << *Inst;
}
}

LLVM_DUMP_METHOD void dump() const {
dump(dbgs());
dbgs() << '\n';
}
LLVM_DUMP_METHOD void dump() const { dump(dbgs()); }

Instruction *Inst = nullptr;

Expand Down

0 comments on commit 4e755ee

Please sign in to comment.