public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "changpeng.fang at amd dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test Date: Tue, 19 Oct 2010 21:28:00 -0000 [thread overview] Message-ID: <20101019212800.zFzkmzRGgGqElY4kdfxMecBqpYV04QG28uIzxi3cl24@z> (raw) In-Reply-To: <bug-43657-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43657 --- Comment #4 from Changpeng Fang <changpeng.fang at amd dot com> 2010-10-19 21:27:46 UTC --- for (k = 0; k < 32; k++) { res = 0; for (j = 0; j < 32; j++) for (i = 0; i < 32; i++) { next = a[i][j]; res = c > cond_array[i+k][j] ? next : res; } out[k] = res; } gcc interchanges i and j loops, which is not legal in this case. Apparently, res takes the last value of a[i][j] that satisfies the condition c > cond_array[i+k][j]. As a result, change in the reference order will get a different value for res. Anyone knows where to do this legality check? What about the interchange in Graphite for this case?
next parent reply other threads:[~2010-10-19 21:28 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-43657-4@http.gcc.gnu.org/bugzilla/> 2010-10-19 21:28 ` changpeng.fang at amd dot com [this message] 2011-01-16 12:29 ` aoliva at gcc dot gnu.org 2011-01-16 13:23 ` aoliva at gcc dot gnu.org 2011-01-18 20:56 ` spop at gcc dot gnu.org 2011-01-18 20:59 ` spop at gcc dot gnu.org 2011-01-25 21:29 ` spop at gcc dot gnu.org 2011-01-25 21:30 ` spop at gcc dot gnu.org 2011-02-02 18:03 ` dnovillo at gcc dot gnu.org 2010-04-05 23:00 [Bug tree-optimization/43657] New: [4.3/4.4/4.5 " zsojka at seznam dot cz 2010-04-09 13:00 ` [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org 2010-05-22 18:36 ` rguenth at gcc dot gnu dot org 2010-05-26 11:15 ` jakub at gcc dot gnu dot 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=20101019212800.zFzkmzRGgGqElY4kdfxMecBqpYV04QG28uIzxi3cl24@z \ --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: linkBe 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).