public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <rguenther@suse.de>
To: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Cc: gcc-patches@gcc.gnu.org, ubizjak@gmail.com
Subject: Re: [PATCH] Fix PR79201 (half-way)
Date: Thu, 11 May 2017 13:00:00 -0000	[thread overview]
Message-ID: <alpine.LSU.2.20.1705111446190.20726@zhemvz.fhfr.qr> (raw)
In-Reply-To: <yddwp9na8st.fsf@CeBiTec.Uni-Bielefeld.DE>

On Thu, 11 May 2017, Rainer Orth wrote:

> Hi Richard,
> 
> > On Mon, 24 Apr 2017, Richard Biener wrote:
> >> 
> >> One issue in PR79201 is that we don't sink pure/const calls which is
> >> what the following simple patch fixes.
> >> 
> >> Bootstrap and regtest running on x86_64-unknown-linux-gnu.
> >
> > Needed some gimple_assign_lhs -> gimple_get_lhs adjustments and
> > adjustment of gcc.target/i386/pr22152.c where we now sink the
> > assignment out of the pointless loop.  Not sure what the original
> > bug was about (well, reg allocation) so I simply disabled sinking
> > for it.
> >
> > Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
> >
> > Richard.
> >
> > 2017-04-25  Richard Biener  <rguenther@suse.de>
> >
> > 	PR tree-optimization/79201
> > 	* tree-ssa-sink.c (statement_sink_location): Handle calls.
> >
> > 	* gcc.dg/tree-ssa/ssa-sink-16.c: New testcase.
> > 	* gcc.target/i386/pr22152.c: Disable sinking.
> 
> however, gcc.target/i386/pr22152.c FAILs now for 32-bit:
> 
> FAIL: gcc.target/i386/pr22152.c scan-assembler-times movq[ \\\\t]+[^\\n]*%mm 1

I remember seeing this and was not able to make sense of the testcase
which was added to fix some backend issue.  Disabling sinking doesn't
work (IIRC) as it is required to generate the original code as well.

Uros added the testcase in 2008 -- I think if we want to have a testcase
for the original issue we need a different one.  Or simply remove
the testcase.

Richard.

  reply	other threads:[~2017-05-11 12:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-24  9:06 Richard Biener
2017-04-25  9:31 ` Richard Biener
2017-05-11 12:21   ` Rainer Orth
2017-05-11 13:00     ` Richard Biener [this message]
2017-05-11 13:07       ` Uros Bizjak
2017-05-11 14:06         ` Richard Biener
2017-05-11 15:03           ` Uros Bizjak
2017-05-12  7:22             ` Richard Biener

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=alpine.LSU.2.20.1705111446190.20726@zhemvz.fhfr.qr \
    --to=rguenther@suse.de \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=ro@CeBiTec.Uni-Bielefeld.DE \
    --cc=ubizjak@gmail.com \
    /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).