public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/31966] [4.1/4.2/4.3 Regression] Miscompiles valid code with -ftree-vectorize Date: Sun, 01 Jul 2007 14:20:00 -0000 [thread overview] Message-ID: <20070701142003.31238.qmail@sourceware.org> (raw) In-Reply-To: <bug-31966-6477@http.gcc.gnu.org/bugzilla/> ------- Comment #6 from ubizjak at gmail dot com 2007-07-01 14:20 ------- In the tree-if-conv.c, there is a comment with the reference to PR23115, where similar problems were addressed: 4) If pred B is dominated by pred A then use pred B's condition. See PR23115. */ For attached testcase, we have following CFG: bb3 / \ / \ / \ V V bb5 <---- bb4 \ / \ / \ / V V bb6 with the conditions: bb3: C3 = (high_top_bit_11 != 0) bb4: C4 = (d_7(D) <= high_19) predicates for blocks are then: bb4: !C3 bb5: C3 || !C3 & C4 [ = C3 || C4 ] In bb6, we have: # quotient_3 = PHI <quotient_20(4), quotient_22(5)> For some reason domiated_by_p() failed to detect that bb5 is dominated by bb4 and if-conversion simply assigns bb4 predicate (!C3) as the phi node condition. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31966
next prev parent reply other threads:[~2007-07-01 14:20 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-05-17 6:35 [Bug tree-optimization/31966] New: Miscompiles valid code with -ftree-vectorize and -march=nocona lloyd at randombit dot net 2007-05-17 6:37 ` [Bug tree-optimization/31966] " lloyd at randombit dot net 2007-06-30 22:11 ` lloyd at randombit dot net 2007-07-01 8:48 ` dorit at gcc dot gnu dot org 2007-07-01 8:52 ` dorit at gcc dot gnu dot org 2007-07-01 9:33 ` [Bug tree-optimization/31966] [4.1/4.2/4.3 Regression] Miscompiles valid code with -ftree-vectorize ubizjak at gmail dot com 2007-07-01 14:20 ` ubizjak at gmail dot com [this message] 2007-07-01 15:46 ` ubizjak at gmail dot com 2007-07-02 14:02 ` ubizjak at gmail dot com 2007-07-02 14:26 ` uros at gcc dot gnu dot org 2007-07-02 14:28 ` [Bug tree-optimization/31966] [4.1/4.2 " ubizjak at gmail dot com 2007-07-04 5:41 ` uros at gcc dot gnu dot org 2007-07-04 5:49 ` uros at gcc dot gnu dot org 2007-07-04 5:54 ` ubizjak at gmail dot com
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=20070701142003.31238.qmail@sourceware.org \ --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).