mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[LV] Merge LLVM_DEBUG blocks.
Avoids unused variable warnings about the range-based for loops in there. NFCI. llvm-svn: 374646
This commit is contained in:
parent
1be8c5bd99
commit
2d3816bb5d
@ -5462,21 +5462,23 @@ LoopVectorizationCostModel::calculateRegisterUsage(ArrayRef<unsigned> VFs) {
|
||||
Invariant[ClassID] += Usage;
|
||||
}
|
||||
|
||||
LLVM_DEBUG(dbgs() << "LV(REG): VF = " << VFs[i] << '\n');
|
||||
LLVM_DEBUG(dbgs() << "LV(REG): Found max usage: "
|
||||
<< MaxUsages[i].size() << " item\n");
|
||||
for (const auto& pair : MaxUsages[i]) {
|
||||
LLVM_DEBUG(dbgs() << "LV(REG): RegisterClass: "
|
||||
<< TTI.getRegisterClassName(pair.first)
|
||||
<< ", " << pair.second << " registers \n");
|
||||
}
|
||||
LLVM_DEBUG(dbgs() << "LV(REG): Found invariant usage: "
|
||||
<< Invariant.size() << " item\n");
|
||||
for (const auto& pair : Invariant) {
|
||||
LLVM_DEBUG(dbgs() << "LV(REG): RegisterClass: "
|
||||
<< TTI.getRegisterClassName(pair.first)
|
||||
<< ", " << pair.second << " registers \n");
|
||||
}
|
||||
LLVM_DEBUG({
|
||||
dbgs() << "LV(REG): VF = " << VFs[i] << '\n';
|
||||
dbgs() << "LV(REG): Found max usage: " << MaxUsages[i].size()
|
||||
<< " item\n";
|
||||
for (const auto &pair : MaxUsages[i]) {
|
||||
dbgs() << "LV(REG): RegisterClass: "
|
||||
<< TTI.getRegisterClassName(pair.first) << ", " << pair.second
|
||||
<< " registers\n";
|
||||
}
|
||||
dbgs() << "LV(REG): Found invariant usage: " << Invariant.size()
|
||||
<< " item\n";
|
||||
for (const auto &pair : Invariant) {
|
||||
dbgs() << "LV(REG): RegisterClass: "
|
||||
<< TTI.getRegisterClassName(pair.first) << ", " << pair.second
|
||||
<< " registers\n";
|
||||
}
|
||||
});
|
||||
|
||||
RU.LoopInvariantRegs = Invariant;
|
||||
RU.MaxLocalUsers = MaxUsages[i];
|
||||
|
Loading…
Reference in New Issue
Block a user