[llvm-commits] [llvm] r110248 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp

Bill Wendling isanbard at gmail.com
Wed Aug 4 14:44:13 PDT 2010


Author: void
Date: Wed Aug  4 16:44:13 2010
New Revision: 110248

URL: http://llvm.org/viewvc/llvm-project?rev=110248&view=rev
Log:
The EH prepare passes really want to be the last passes run before code-gen.


Modified:
    llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp

Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=110248&r1=110247&r2=110248&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Wed Aug  4 16:44:13 2010
@@ -272,6 +272,11 @@
       PM.add(createPrintFunctionPass("\n\n*** Code after LSR ***\n", &dbgs()));
   }
 
+  PM.add(createGCLoweringPass());
+
+  // Make sure that no unreachable blocks are instruction selected.
+  PM.add(createUnreachableBlockEliminationPass());
+
   // Turn exception handling constructs into something the code generators can
   // handle.
   switch (getMCAsmInfo()->getExceptionHandlingType()) {
@@ -293,11 +298,6 @@
     break;
   }
 
-  PM.add(createGCLoweringPass());
-
-  // Make sure that no unreachable blocks are instruction selected.
-  PM.add(createUnreachableBlockEliminationPass());
-
   if (OptLevel != CodeGenOpt::None && !DisableCGP)
     PM.add(createCodeGenPreparePass(getTargetLowering()));
 





More information about the llvm-commits mailing list