ipa-inline.c (can_inline_edge_p): Allow inlining of functions with same attributes.
authorChristian Bruel <chrbr@gcc.gnu.org>
Fri, 17 Apr 2015 06:50:08 +0000 (08:50 +0200)
committerChristian Bruel <chrbr@gcc.gnu.org>
Fri, 17 Apr 2015 06:50:08 +0000 (08:50 +0200)
* ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
same attributes.

From-SVN: r222165

gcc/ChangeLog
gcc/ipa-inline.c

index 008bd47fb015b4dec7a63fdac7b6dc80db7b7db2..eba141ddb5ea35263e2334b389b8dd78b29cf1ca 100644 (file)
@@ -1,4 +1,9 @@
-2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn> 
+2015-04-17  Christian Bruel  <christian.bruel@st.com>
+
+       * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
+       same attributes.
+
+2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
 
        * ira-color.c (setup_left_conflict_sizes_p): Do not process
        node itself when computing left conflict subnode size.
index 4533ea46be7588ee72fcda70b40bfaff60d3f606..565c5e38b648593a794f599086a0b46257712d34 100644 (file)
@@ -515,7 +515,7 @@ can_inline_edge_p (struct cgraph_edge *e, bool report,
       else if (opt_for_fn (callee->decl, optimize_size)
               < opt_for_fn (caller->decl, optimize_size)
               || (opt_for_fn (callee->decl, optimize)
-                  >= opt_for_fn (caller->decl, optimize)))
+                  > opt_for_fn (caller->decl, optimize)))
        {
          if (estimate_edge_time (e)
              >= 20 + inline_edge_summary (e)->call_stmt_time)