summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/Passes.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-12-13 18:37:03 +0000
committerAndrew Trick <atrick@apple.com>2013-12-13 18:37:03 +0000
commit8d6a658430310f2de8d66e0dd1c13a80b4fdb247 (patch)
tree03137d7735c9f02755d96021a4a7c6bfb0280e24 /llvm/lib/CodeGen/Passes.cpp
parent8df84fa2f2cdff764e95c8491d4e52f0a62e5910 (diff)
downloadbcm5719-llvm-8d6a658430310f2de8d66e0dd1c13a80b4fdb247.tar.gz
bcm5719-llvm-8d6a658430310f2de8d66e0dd1c13a80b4fdb247.zip
Liveness Analysis Pass
llvm-svn: 197254
Diffstat (limited to 'llvm/lib/CodeGen/Passes.cpp')
-rw-r--r--llvm/lib/CodeGen/Passes.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/Passes.cpp b/llvm/lib/CodeGen/Passes.cpp
index db7021372bc..e9f780cf130 100644
--- a/llvm/lib/CodeGen/Passes.cpp
+++ b/llvm/lib/CodeGen/Passes.cpp
@@ -69,6 +69,8 @@ static cl::opt<bool> DisableCGP("disable-cgp", cl::Hidden,
cl::desc("Disable Codegen Prepare"));
static cl::opt<bool> DisableCopyProp("disable-copyprop", cl::Hidden,
cl::desc("Disable Copy Propagation pass"));
+static cl::opt<bool> EnableStackMapLiveness("enable-stackmap-liveness",
+ cl::Hidden, cl::desc("Enable StackMap Liveness Analysis Pass"));
static cl::opt<bool> PrintLSR("print-lsr-output", cl::Hidden,
cl::desc("Print LLVM IR produced by the loop-reduce pass"));
static cl::opt<bool> PrintISelInput("print-isel-input", cl::Hidden,
@@ -536,6 +538,9 @@ void TargetPassConfig::addMachinePasses() {
if (addPreEmitPass())
printAndVerify("After PreEmit passes");
+
+ if (EnableStackMapLiveness)
+ addPass(&StackMapLivenessID);
}
/// Add passes that optimize machine instructions in SSA form.
OpenPOWER on IntegriCloud