[llvm-commits] [gcc-plugin] r80130 - /gcc-plugin/trunk/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Wed Aug 26 12:58:17 PDT 2009
Author: baldrick
Date: Wed Aug 26 14:58:17 2009
New Revision: 80130
URL: http://llvm.org/viewvc/llvm-project?rev=80130&view=rev
Log:
Add a note about turning off gcc optimizations.
Modified:
gcc-plugin/trunk/llvm-backend.cpp
Modified: gcc-plugin/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-backend.cpp?rev=80130&r1=80129&r2=80130&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-backend.cpp (original)
+++ gcc-plugin/trunk/llvm-backend.cpp Wed Aug 26 14:58:17 2009
@@ -2087,6 +2087,8 @@
// Turn off all gcc optimization passes.
if (disable_gcc_optimizations) {
// TODO: figure out a good way of turning off ipa passes.
+ // Could just set optimize to zero (after taking a copy), but this would
+ // also impact front-end optimizations.
pass_info.pass = &pass_gimple_null.pass;
pass_info.reference_pass_name = "*all_optimizations";
pass_info.ref_pass_instance_number = 0;
More information about the llvm-commits
mailing list