IR: Augment debug statements for use-list order

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2014-07-29 01:09:46 +00:00
parent 16c0d7e5f8
commit 2c9dac0c3a

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();
}
});