summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-02-08 00:58:05 +0000
committerBill Wendling <isanbard@gmail.com>2009-02-08 00:58:05 +0000
commit5469ec1072837b9387710b01ba6f87f6d6229c3f (patch)
tree3e3105a3870fd4bdc87f211f865071ddab171cb6 /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parentbf20a9a57d0669da6b0b3d9b5ea6e83398bddb4a (diff)
downloadbcm5719-llvm-5469ec1072837b9387710b01ba6f87f6d6229c3f.tar.gz
bcm5719-llvm-5469ec1072837b9387710b01ba6f87f6d6229c3f.zip
Revert r63999. It was breaking self-hosting builds.
llvm-svn: 64062
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index f29944c7c90..7def8fa61d2 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -38,6 +38,11 @@ static cl::opt<bool> PrintEmittedAsm("print-emitted-asm", cl::Hidden,
static cl::opt<bool> PrintGCInfo("print-gc", cl::Hidden,
cl::desc("Dump garbage collector data"));
+// Hidden options to help debugging
+static cl::opt<bool>
+EnableSinking("enable-sinking", cl::init(false), cl::Hidden,
+ cl::desc("Perform sinking on machine code"));
+
// When this works it will be on by default.
static cl::opt<bool>
DisablePostRAScheduler("disable-post-RA-scheduler",
@@ -178,10 +183,11 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) {
if (PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(cerr));
- if (!Fast) {
+ if (!Fast)
PM.add(createMachineLICMPass());
+
+ if (EnableSinking)
PM.add(createMachineSinkingPass());
- }
// Run pre-ra passes.
if (addPreRegAlloc(PM, Fast) && PrintMachineCode)
OpenPOWER on IntegriCloud