aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-05 06:14:16 +0000
committerChris Lattner <sabre@nondot.org>2008-01-05 06:14:16 +0000
commita132dd405dd272fe5a34d171d0f991e085b8210f (patch)
treed3e52c21e07328debc2ba180b27c3518ac885c57 /lib
parent5c6ee7a7c57757fd95c6c33fd9d398a5ede05b20 (diff)
downloadexternal_llvm-a132dd405dd272fe5a34d171d0f991e085b8210f.zip
external_llvm-a132dd405dd272fe5a34d171d0f991e085b8210f.tar.gz
external_llvm-a132dd405dd272fe5a34d171d0f991e085b8210f.tar.bz2
allow sinking to be enabled for the jit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index 15c1d67..d453335 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -193,6 +193,9 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM,
if (PerformLICM)
PM.add(createMachineLICMPass());
+
+ if (EnableSinking)
+ PM.add(createMachineSinkingPass());
// Perform register allocation to convert to a concrete x86 representation
PM.add(createRegisterAllocator());