[llvm] e630a45 - [HCS] Fix unused variable warnings. NFCI.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 22 09:59:01 PST 2024
Author: Benjamin Kramer
Date: 2024-02-22T18:58:50+01:00
New Revision: e630a451b457e4d8d071a2b4f102b342bbea2d02
URL: https://github.com/llvm/llvm-project/commit/e630a451b457e4d8d071a2b4f102b342bbea2d02
DIFF: https://github.com/llvm/llvm-project/commit/e630a451b457e4d8d071a2b4f102b342bbea2d02.diff
LOG: [HCS] Fix unused variable warnings. NFCI.
Added:
Modified:
llvm/lib/Transforms/IPO/HotColdSplitting.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/HotColdSplitting.cpp b/llvm/lib/Transforms/IPO/HotColdSplitting.cpp
index 5f03bd59b8cd1f..5aefcbf13182c1 100644
--- a/llvm/lib/Transforms/IPO/HotColdSplitting.cpp
+++ b/llvm/lib/Transforms/IPO/HotColdSplitting.cpp
@@ -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)));
@@ -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;
More information about the llvm-commits
mailing list