diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 15c1d67f3fc2..d45333514471 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/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());