This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 9/9] ipa-inline uses sreal for as fibonacci_heap template argument.


On 11/13/14 13:10, mliska wrote:
gcc/ChangeLog:

2014-11-13  Martin Liska  <mliska@suse.cz>

	* ipa-inline.c (edge_badness): long is replaced by sreal
	as fibonacci_heap template type.
	(update_edge_key): Likewise.
	(inline_small_functions): Likewise.
	* sreal.h (inline sreal operator<<): New function added.
	(inline sreal operator>>): Likewise.
Remove include of fibheap.h if it's no longer needed.



@@ -1057,13 +1057,13 @@ edge_badness (struct cgraph_edge *edge, bool dump)

        /* Decrease badness if call is nested.  */
        if (badness > 0)
-	badness >>= nest;
+	badness = badness >> nest;
        else
  	{
-	  badness <<= nest;
+	  badness = badness << nest;
OK. Here's the shifts I was asking about when I looked at the sreal changes :-)

OK if/when prerequisites are approved.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]