[llvm-commits] [dragonegg] r155109 - /dragonegg/trunk/src/Backend.cpp

Duncan Sands baldrick at free.fr
Thu Apr 19 01:56:33 PDT 2012


Author: baldrick
Date: Thu Apr 19 03:56:32 2012
New Revision: 155109

URL: http://llvm.org/viewvc/llvm-project?rev=155109&view=rev
Log:
Adjust the pass list appropriately for gcc-4.7.

Modified:
    dragonegg/trunk/src/Backend.cpp

Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=155109&r1=155108&r2=155109&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Thu Apr 19 03:56:32 2012
@@ -2253,6 +2253,8 @@
     pass_info.pos_op = PASS_POS_REPLACE;
     register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
 
+    // Leave pass_ipa_tm.
+
     // Leave pass_ipa_lower_emutls. ???
 
     // Leave pass_ipa_whole_program_visibility. ???
@@ -2289,12 +2291,14 @@
     pass_info.pos_op = PASS_POS_REPLACE;
     register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
 
+#if (GCC_MINOR < 7)
     // Turn off pass_ipa_type_escape.
     pass_info.pass = &pass_simple_ipa_null.pass;
     pass_info.reference_pass_name = "type-escape-var";
     pass_info.ref_pass_instance_number = 0;
     pass_info.pos_op = PASS_POS_REPLACE;
     register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
+#endif
 
     // Turn off pass_ipa_pta.
     pass_info.pass = &pass_simple_ipa_null.pass;
@@ -2303,12 +2307,14 @@
     pass_info.pos_op = PASS_POS_REPLACE;
     register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
 
+#if (GCC_MINOR < 7)
     // Turn off pass_ipa_struct_reorg.
     pass_info.pass = &pass_simple_ipa_null.pass;
     pass_info.reference_pass_name = "ipa_struct_reorg";
     pass_info.ref_pass_instance_number = 0;
     pass_info.pos_op = PASS_POS_REPLACE;
     register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
+#endif
   }
 
   // Replace the LTO gimple pass with a pass that converts same-body aliases and
@@ -2342,56 +2348,58 @@
                     NULL);
 
   if (!EnableGCCOptimizations) {
-    // Disable pass_lower_eh_dispatch, which runs after LLVM conversion.
+    // Disable pass_lower_eh_dispatch.
     pass_info.pass = &pass_gimple_null.pass;
     pass_info.reference_pass_name = "ehdisp";
     pass_info.ref_pass_instance_number = 0;
     pass_info.pos_op = PASS_POS_REPLACE;
     register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
 
-    // Disable pass_all_optimizations, which runs after LLVM conversion.
+    // Disable pass_all_optimizations.
     pass_info.pass = &pass_gimple_null.pass;
     pass_info.reference_pass_name = "*all_optimizations";
     pass_info.ref_pass_instance_number = 0;
     pass_info.pos_op = PASS_POS_REPLACE;
     register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
 
-    // Disable pass_lower_complex_O0, which runs after LLVM conversion.
+    // Leave pass_tm_init.
+
+    // Disable pass_lower_complex_O0.
     pass_info.pass = &pass_gimple_null.pass;
     pass_info.reference_pass_name = "cplxlower0";
     pass_info.ref_pass_instance_number = 0;
     pass_info.pos_op = PASS_POS_REPLACE;
     register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
 
-    // Disable pass_cleanup_eh, which runs after LLVM conversion.
+    // Disable pass_cleanup_eh.
     pass_info.pass = &pass_gimple_null.pass;
     pass_info.reference_pass_name = "ehcleanup";
     pass_info.ref_pass_instance_number = 0;
     pass_info.pos_op = PASS_POS_REPLACE;
     register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
 
-    // Disable pass_lower_resx, which runs after LLVM conversion.
+    // Disable pass_lower_resx.
     pass_info.pass = &pass_gimple_null.pass;
     pass_info.reference_pass_name = "resx";
     pass_info.ref_pass_instance_number = 0;
     pass_info.pos_op = PASS_POS_REPLACE;
     register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
 
-    // Disable pass_nrv, which runs after LLVM conversion.
+    // Disable pass_nrv.
     pass_info.pass = &pass_gimple_null.pass;
     pass_info.reference_pass_name = "nrv";
     pass_info.ref_pass_instance_number = 0;
     pass_info.pos_op = PASS_POS_REPLACE;
     register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
 
-    // Disable pass_mudflap_2, which runs after LLVM conversion.
+    // Disable pass_mudflap_2. ???
     pass_info.pass = &pass_gimple_null.pass;
     pass_info.reference_pass_name = "mudflap2";
     pass_info.ref_pass_instance_number = 0;
     pass_info.pos_op = PASS_POS_REPLACE;
     register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
 
-    // Disable pass_cleanup_cfg_post_optimizing, which runs after LLVM conversion.
+    // Disable pass_cleanup_cfg_post_optimizing.
     pass_info.pass = &pass_gimple_null.pass;
     pass_info.reference_pass_name = "optimized";
     pass_info.ref_pass_instance_number = 0;





More information about the llvm-commits mailing list