This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 9/9] ipa-inline uses sreal for as fibonacci_heap template argument.
- From: Jeff Law <law at redhat dot com>
- To: mliska <mliska at suse dot cz>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 13 Nov 2014 21:34:50 -0700
- Subject: Re: [PATCH 9/9] ipa-inline uses sreal for as fibonacci_heap template argument.
- Authentication-results: sourceware.org; auth=none
- References: <398814b6afe28679f16c5d4b9879accb7984b76b dot 1415911038 dot git dot mliska at suse dot cz> <4ef2e85a80eec64e547109c4c381dc82629ccf8f dot 1415911038 dot git dot mliska at suse dot cz>
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