[PATCH] D100010: [GreedyRA ORE] Compute ORE stats if extra analysis is enabled
Serguei Katkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 8 00:24:37 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0a1c6637a1e8: [GreedyRA ORE] Compute ORE stats if extra analysis is enabled (authored by skatkov).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100010/new/
https://reviews.llvm.org/D100010
Files:
llvm/lib/CodeGen/RegAllocGreedy.cpp
Index: llvm/lib/CodeGen/RegAllocGreedy.cpp
===================================================================
--- llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -552,13 +552,7 @@
unsigned &FoldedSpills);
/// Report the number of spills and reloads for each loop.
- void reportNumberOfSplillsReloads() {
- for (MachineLoop *L : *Loops) {
- unsigned Reloads, FoldedReloads, Spills, FoldedSpills;
- reportNumberOfSplillsReloads(L, Reloads, FoldedReloads, Spills,
- FoldedSpills);
- }
- }
+ void reportNumberOfSplillsReloads();
};
} // end anonymous namespace
@@ -3183,6 +3177,16 @@
}
}
+void RAGreedy::reportNumberOfSplillsReloads() {
+ if (!ORE->allowExtraAnalysis(DEBUG_TYPE))
+ return;
+ for (MachineLoop *L : *Loops) {
+ unsigned Reloads, FoldedReloads, Spills, FoldedSpills;
+ reportNumberOfSplillsReloads(L, Reloads, FoldedReloads, Spills,
+ FoldedSpills);
+ }
+}
+
bool RAGreedy::runOnMachineFunction(MachineFunction &mf) {
LLVM_DEBUG(dbgs() << "********** GREEDY REGISTER ALLOCATION **********\n"
<< "********** Function: " << mf.getName() << '\n');
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100010.336018.patch
Type: text/x-patch
Size: 1262 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210408/a9c1ca21/attachment.bin>
More information about the llvm-commits
mailing list