IR: Augment debug statements for use-list order

llvm-svn: 214155
This commit is contained in:
Duncan P. N. Exon Smith 2014-07-29 01:09:46 +00:00
parent 049fcd8c64
commit 78141cef2c
1 changed files with 5 additions and 2 deletions

View File

@ -66,7 +66,9 @@ static void shuffleValueUseLists(Value *V, std::minstd_rand0 &Gen,
for (const Use &U : V->uses()) {
auto I = Dist(Gen);
Order[&U] = I;
DEBUG(dbgs() << " - order: " << I << ", U = "; U.getUser()->dump());
DEBUG(dbgs() << " - order: " << I << ", op = " << U.getOperandNo()
<< ", U = ";
U.getUser()->dump());
}
DEBUG(dbgs() << " => shuffle\n");
@ -75,7 +77,8 @@ static void shuffleValueUseLists(Value *V, std::minstd_rand0 &Gen,
DEBUG({
for (const Use &U : V->uses()) {
dbgs() << " - order: " << Order.lookup(&U) << ", U = ";
dbgs() << " - order: " << Order.lookup(&U)
<< ", op = " << U.getOperandNo() << ", U = ";
U.getUser()->dump();
}
});