[llvm-commits] [llvm-gcc-4.2] r49376 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Tue Apr 8 02:39:38 PDT 2008
Author: baldrick
Date: Tue Apr 8 04:39:36 2008
New Revision: 49376
URL: http://llvm.org/viewvc/llvm-project?rev=49376&view=rev
Log:
Don't run the prune-eh pass if compiled without
-fexceptions: there is nothing for it to do.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=49376&r1=49375&r2=49376&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Tue Apr 8 04:39:36 2008
@@ -353,7 +353,7 @@
// DISABLE PREDSIMPLIFY UNTIL PR967 is fixed.
//PM->add(createPredicateSimplifierPass()); // Canonicalize registers
PM->add(createCFGSimplificationPass()); // Clean up after IPCP & DAE
- if (flag_unit_at_a_time)
+ if (flag_unit_at_a_time && flag_exceptions)
PM->add(createPruneEHPass()); // Remove dead EH info
if (optimize > 1) {
More information about the llvm-commits
mailing list