Skip to content

Commit

Permalink
[HCS] Fix unused variable warnings. NFCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k committed Feb 22, 2024
1 parent bc841bb commit e630a45
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions llvm/lib/Transforms/IPO/HotColdSplitting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,10 +716,10 @@ bool HotColdSplitting::outlineColdRegions(Function &F, bool HasProfileSummary) {
})) {
ColdBlocks.insert(SubRegion.begin(), SubRegion.end());

for (auto *Block : SubRegion) {
LLVM_DEBUG(dbgs()
<< " contains cold block:" << Block->getName() << "\n");
}
LLVM_DEBUG({
for (auto *Block : SubRegion)
dbgs() << " contains cold block:" << Block->getName() << "\n";
});

OutliningWorklist.emplace_back(
std::make_pair(SubRegion[0], std::move(CE)));
Expand Down Expand Up @@ -748,6 +748,7 @@ bool HotColdSplitting::outlineColdRegions(Function &F, bool HasProfileSummary) {
Function *Outlined =
extractColdRegion(*BCE.first, BCE.second, CEAC, BFI, TTI, ORE);
assert(Outlined && "Should be outlined");
(void)Outlined;
}

return true;
Expand Down

0 comments on commit e630a45

Please sign in to comment.