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

Duncan Sands baldrick at free.fr
Mon Oct 10 05:05:36 PDT 2011


Author: baldrick
Date: Mon Oct 10 07:05:36 2011
New Revision: 141531

URL: http://llvm.org/viewvc/llvm-project?rev=141531&view=rev
Log:
Restore the early inline pass, since otherwise extern inline functions
are not inlined.

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=141531&r1=141530&r2=141531&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Mon Oct 10 07:05:36 2011
@@ -2117,12 +2117,8 @@
     // Leave pass_inline_parameters.  Otherwise our vector lowering fails since
     // immediates have not been propagated into builtin callsites.
 
-    // Turn off pass_early_inline.
-    pass_info.pass = &pass_gimple_null.pass;
-    pass_info.reference_pass_name = "einline";
-    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);
+    // Leave pass_early_inline.  This handles extern inline functions.
+    // TODO: Work out a way of making such functions visible in the LLVM IR.
 
     // Insert a pass that ensures that any newly inserted functions, for example
     // those generated by OMP expansion, are processed before being converted to





More information about the llvm-commits mailing list