public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jan Hubicka <hubicka@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-2887] Fix condition testing void functions in ipa-split.
Date: Thu, 12 Aug 2021 18:53:15 +0000 (GMT)	[thread overview]
Message-ID: <20210812185315.2AC0B39B9087@sourceware.org> (raw)

https://gcc.gnu.org/g:a6da2cddcf0e959de6666d4d74411af23507f9f9

commit r12-2887-ga6da2cddcf0e959de6666d4d74411af23507f9f9
Author: Jan Hubicka <jh@suse.cz>
Date:   Thu Aug 12 20:52:54 2021 +0200

    Fix condition testing void functions in ipa-split.
    
    gcc/ChangeLog:
    
    2021-08-12  Jan Hubicka  <hubicka@ucw.cz>
    
            * ipa-split.c (consider_split): Fix condition testing void functions.

Diff:
---
 gcc/ipa-split.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c
index 5e918ee3fbf..c68577d04a9 100644
--- a/gcc/ipa-split.c
+++ b/gcc/ipa-split.c
@@ -546,8 +546,9 @@ consider_split (class split_point *current, bitmap non_ssa_vars,
 	    }
 	}
     }
-  if (!VOID_TYPE_P (TREE_TYPE (current_function_decl)))
-    call_overhead += estimate_move_cost (TREE_TYPE (current_function_decl),
+  if (!VOID_TYPE_P (TREE_TYPE (TREE_TYPE (current_function_decl))))
+    call_overhead += estimate_move_cost (TREE_TYPE (TREE_TYPE
+						 (current_function_decl)),
 					 false);
 
   if (current->split_size <= call_overhead)


                 reply	other threads:[~2021-08-12 18:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210812185315.2AC0B39B9087@sourceware.org \
    --to=hubicka@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).