Replace r168930 with a more reasonable patch.
[oota-llvm.git] / lib / CodeGen / LLVMTargetMachine.cpp
index 91ec0387250c67f79e30d1cc356a2a5f262080dc..db2a54fcad49be0c41761e42857cbfba7f31886f 100644 (file)
@@ -96,6 +96,8 @@ static MCContext *addPassesToGenerateCode(LLVMTargetMachine *TM,
 
   PassConfig->addIRPasses();
 
+  PassConfig->addCodeGenPrepare();
+
   PassConfig->addPassesToHandleExceptions();
 
   PassConfig->addISelPrepare();