From 3c8eb80d93d61628752cc94f7e1261118d6fd3b7 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sat, 24 Jul 2010 20:48:54 +0000 Subject: Add hook to insert late LLVM=>LLVM passes just before isel llvm-svn: 109354 --- llvm/lib/CodeGen/LLVMTargetMachine.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index fd102416d89..98d49ad65af 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -307,6 +307,8 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, PM.add(createStackProtectorPass(getTargetLowering())); + addPreISel(PM, OptLevel); + if (PrintISelInput) PM.add(createPrintFunctionPass("\n\n" "*** Final LLVM Code input to ISel ***\n", -- cgit v1.2.3