public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/65063] [4.8/4.9/5 Regression] gcc.dg/vect/vect-double-reduc-6.c FAILs with -O3 -fno-tree-loop-ivcanon -fno-tree-vectorize
Date: Tue, 17 Feb 2015 12:03:00 -0000	[thread overview]
Message-ID: <bug-65063-4-EwljDcaWpI@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-65063-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65063

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
The tail loop ends up with completely off initial conditions because its
values are computed before pcom transform which ends up releasing the
SSA names used therein.  Then unrolling assigns some random new SSA names
to them.

So it seems to me that pcom doesn't deal with the case of a tail loop
at all - at least it doesn't compute entry values for that.  There isn't
a 1:1 relation between the values either and the old IVs are removed.
Also there seems to be always at least one tail iteration.

In the existing testcases the old IVs simply don't become dead.

So we have to restrict unrolling to the case where we don't replace looparound
PHIs.


  parent reply	other threads:[~2015-02-17 12:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-14  9:22 [Bug tree-optimization/65063] New: " zsojka at seznam dot cz
2015-02-14 19:47 ` [Bug tree-optimization/65063] [4.8/4.9/5 Regression] " jakub at gcc dot gnu.org
2015-02-16 10:58 ` rguenth at gcc dot gnu.org
2015-02-17 12:03 ` rguenth at gcc dot gnu.org [this message]
2015-02-18 13:09 ` rguenth at gcc dot gnu.org
2015-02-18 13:11 ` [Bug tree-optimization/65063] [4.8/4.9 " rguenth at gcc dot gnu.org
2015-02-20  7:32 ` [Bug tree-optimization/65063] [4.8 " rguenth at gcc dot gnu.org
2015-02-25 10:41 ` rguenth at gcc dot gnu.org
2015-02-25 11:13 ` rguenth at gcc dot gnu.org
2015-02-25 11:22 ` rguenth at gcc dot gnu.org

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=bug-65063-4-EwljDcaWpI@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).