allow sinking to be enabled for the jit
[oota-llvm.git] / 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());