[PATCH] D69446: [llvm][MachineOutliner] Add support for repeating machine outliner N times.
Puyan Lotfi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 15:11:35 PDT 2019
plotfi updated this revision to Diff 226756.
plotfi marked 2 inline comments as done.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69446/new/
https://reviews.llvm.org/D69446
Files:
llvm/lib/CodeGen/MachineOutliner.cpp
Index: llvm/lib/CodeGen/MachineOutliner.cpp
===================================================================
--- llvm/lib/CodeGen/MachineOutliner.cpp
+++ llvm/lib/CodeGen/MachineOutliner.cpp
@@ -95,6 +95,11 @@
cl::desc("Enable the machine outliner on linkonceodr functions"),
cl::init(false));
+static cl::opt<unsigned> OutlinerReruns(
+ "outliner-reruns", cl::init(0), cl::Hidden,
+ cl::desc(
+ "Number of times to rerun the outliner after the initial outline"));
+
namespace {
/// Represents an undefined index in the suffix tree.
@@ -1427,6 +1432,11 @@
if (!doOutline(M, OutlinedFunctionNum))
return false;
+
+ for (unsigned I = 0; I < OutlinerReruns; ++I)
+ if (!doOutline(M, OutlinedFunctionNum))
+ return true;
+
return true;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69446.226756.patch
Type: text/x-patch
Size: 791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191028/f93b3905/attachment.bin>
More information about the llvm-commits
mailing list