public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <law@redhat.com>
To: Richard Biener <rguenther@suse.de>, gcc-patches@gcc.gnu.org
Cc: andrew.n.senkevich@gmail.com
Subject: Re: [PATCH] Fix PR78306
Date: Tue, 29 Nov 2016 00:09:00 -0000	[thread overview]
Message-ID: <7b587730-b3cc-6558-f53a-06f53074de81@redhat.com> (raw)
In-Reply-To: <alpine.LSU.2.11.1611151556300.5294@t29.fhfr.qr>

On 11/15/2016 07:58 AM, Richard Biener wrote:
>
> Appearantly for some unknown reason we refuse to inline anything into
> functions calling cilk_spawn.  That breaks fortified headers and
> all other always-inline function calls (intrinsics come to my mind as
> well).
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, ok for trunk?
>
> Thanks,
> Richard.
>
> 2016-11-15  Richard Biener  <rguenther@suse.de>
>
> 	PR tree-optimization/78306
> 	* ipa-inline-analysis.c (initialize_inline_failed): Do not
> 	inhibit inlining if function calls cilk_spawn.
> 	(can_inline_edge_p): Likewise.
>
> 	* gcc.dg/cilk-plus/pr78306.c: New testcase.
Balaji added this check explicitly. There should be tests in the 
testsuite (spawnee_inline, spawner_inline) which exercise that code.

I suspect those bits were taken into the trunk as-is and were missed 
during the review cycle.  The actual tests look to only verify that we 
don't crash at runtime -- they do nothing to verify we get the correct 
results.

My understanding of Cilk is that it should be possible to literally 
define away the Cilk keywords and the resulting program should "just 
work".  It would seem that if we must avoid inlining to get proper 
behavior around a cilk_spawn then cilk_spawn is perhaps more fragile 
than it ought to be.


Jeff

  parent reply	other threads:[~2016-11-29  0:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-15 14:58 Richard Biener
2016-11-16  9:43 ` Richard Biener
2016-11-29  0:09 ` Jeff Law [this message]
2016-11-29  7:47   ` Richard Biener
2016-11-29 16:52     ` Jeff Law
2016-11-30  8:52       ` Richard Biener
2016-11-30 12:19         ` Andrew Senkevich
2016-11-30 14:18           ` Richard Biener
2016-12-02 21:35             ` Jeff Law

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=7b587730-b3cc-6558-f53a-06f53074de81@redhat.com \
    --to=law@redhat.com \
    --cc=andrew.n.senkevich@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=rguenther@suse.de \
    /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).