diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-02-28 23:29:57 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-28 23:29:57 +0000 |
| commit | 95a7be473c5818291e3b05677a6009f46fade16d (patch) | |
| tree | a0d88447d1a24f7362919305d3416403d2d0c53c /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
| parent | bb979f4b1cae38b777b1b2f5ccf9d19050e5c3f4 (diff) | |
| download | bcm5719-llvm-95a7be473c5818291e3b05677a6009f46fade16d.tar.gz bcm5719-llvm-95a7be473c5818291e3b05677a6009f46fade16d.zip | |
Added option -align-loops=<true/false> to disable loop aligner pass.
llvm-svn: 47736
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 5611b03ba76..32fbc15e131 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -37,6 +37,9 @@ static cl::opt<bool> EnableSinking("enable-sinking", cl::init(false), cl::Hidden, cl::desc("Perform sinking on machine code")); static cl::opt<bool> +AlignLoops("align-loops", cl::init(true), cl::Hidden, + cl::desc("Align loop headers")); +static cl::opt<bool> PerformLICM("machine-licm", cl::init(false), cl::Hidden, cl::desc("Perform loop-invariant code motion on machine code")); @@ -132,6 +135,9 @@ LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM, if (addPreEmitPass(PM, Fast) && PrintMachineCode) PM.add(createMachineFunctionPrinterPass(cerr)); + if (AlignLoops) + PM.add(createLoopAlignerPass()); + switch (FileType) { default: break; |

