Skip to content

Commit 72c7296

Browse files
committed
[pruned-liveness] Make it so that PrunedLiveBlocks prints out all bits except just the first bit.
1 parent 4981527 commit 72c7296

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/SIL/Utils/PrunedLiveness.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,13 @@ void PrunedLiveBlocks::print(llvm::raw_ostream &OS) const {
179179
if (!discoveredBlocks) {
180180
OS << "No deterministic live block list\n";
181181
}
182+
SmallVector<IsLive, 8> isLive;
182183
for (auto *block : *discoveredBlocks) {
183184
block->printAsOperand(OS);
184-
OS
185-
<< ": " << getStringRef(this->getBlockLiveness(block, 0)) << "\n";
185+
OS << ": ";
186+
for (unsigned i : range(getNumBitsToTrack()))
187+
OS << getStringRef(this->getBlockLiveness(block, i)) << ", ";
188+
OS << "\n";
186189
}
187190
}
188191

0 commit comments

Comments
 (0)