Author: baldrick
Date: Wed Dec 12 09:11:38 2007
New Revision: 44935

URL: http://llvm.org/viewvc/llvm-project?rev=44935&view=rev
Log:
Turn off ipa-pure-const, the pass that deduces
whether functions are pure and constant: it makes
wrong deductions because it doesn't know about
LLVM's array_ref hack.  At some point we should
turn of all of the ipa passes, however the gcc
inlining pass knows how to deal with exception
handlers much better than we do, so leave that
on for the moment.

Modified:
    llvm-gcc-4.2/trunk/gcc/passes.c

Modified: llvm-gcc-4.2/trunk/gcc/passes.c
URL: 
http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/passes.c?rev=44935&r1=44934&r2=44935&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/passes.c (original)
+++ llvm-gcc-4.2/trunk/gcc/passes.c Wed Dec 12 09:11:38 2007
@@ -485,10 +485,14 @@
   NEXT_PASS (pass_early_local_passes);
   NEXT_PASS (pass_ipa_cp);
   NEXT_PASS (pass_ipa_inline);
+/* LLVM LOCAL begin */
+#ifndef ENABLE_LLVM
   NEXT_PASS (pass_ipa_reference);
   NEXT_PASS (pass_ipa_pure_const); 
   NEXT_PASS (pass_ipa_type_escape);
   NEXT_PASS (pass_ipa_pta);
+#endif
+/* LLVM LOCAL end */
   *p = NULL;
 
   /* All passes needed to lower the function into shape optimizers can


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to