allow sinking to be enabled for the jit
authorChris Lattner <sabre@nondot.org>
Sat, 5 Jan 2008 06:14:16 +0000 (06:14 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 5 Jan 2008 06:14:16 +0000 (06:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45624 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LLVMTargetMachine.cpp

index 15c1d67f3fc206af4c4148f3fcae89f24aa76468..d4533351447129ac4317fcd3c3c0306135516693 100644 (file)
@@ -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());