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 target/101505] [10/11/12 Regression] ICE: verify_gimple failed (error: incompatible types in 'PHI' argument 0)
Date: Mon, 19 Jul 2021 11:26:31 +0000	[thread overview]
Message-ID: <bug-101505-4-kXI5r8LKEB@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101505-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
vectorizable_lc_phi get's the vectorized stmts of _4 = xb_17 <= 0; but sees
the mask rather than the pattern stmt used to produce the desired result.
The def_stmt is vect_used_in_outer, and otherwise the use stmt is "dead".
We also failed to mark the pattern.

That said, the failure looks like it is in bool pattern recog which fails
to see the use of _4 = xb_17 <= 0 in non-bool context here.

<bb 4> [local count: 715863673]:
# xb_17 = PHI <xb_5(8), xb_2(3)>
# qp_19 = PHI <qp_7(8), 0(3)>
# ivtmp_15 = PHI <ivtmp_6(8), 2(3)>
_4 = xb_17 <= 0;
xb_5 = (short int) _4;
qp_7 = qp_19 + 1;
ivtmp_6 = ivtmp_15 - 1;
if (ivtmp_6 != 0)
  goto <bb 8>; [66.67%]
else
  goto <bb 5>; [33.33%]

<bb 5> [local count: 357878152]:
# _18 = PHI <_4(4)>
_8 = (char) _18;
retval.2[iter.3_10] = _8;
iter.3_11 = iter.3_10 + 1;
ivtmp_16 = ivtmp_3 - 1;
if (ivtmp_16 != 0)
  goto <bb 7>; [100.00%]
else
  goto <bb 6>; [0.00%]

I've fixed this once for BB vect but not loop vect (I guess due to lack of a
testcase).

  parent reply	other threads:[~2021-07-19 11:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-19  7:35 [Bug target/101505] New: " asolokha at gmx dot com
2021-07-19  7:45 ` [Bug target/101505] " rguenth at gcc dot gnu.org
2021-07-19 11:26 ` rguenth at gcc dot gnu.org [this message]
2021-07-19 11:26 ` rguenth at gcc dot gnu.org
2021-07-19 12:21 ` cvs-commit at gcc dot gnu.org
2021-07-19 12:22 ` [Bug target/101505] [10/11 " rguenth at gcc dot gnu.org
2021-08-04 20:49 ` dcb314 at hotmail dot com
2021-08-04 21:13 ` dcb314 at hotmail dot com
2021-08-05  8:16 ` rguenth at gcc dot gnu.org
2021-08-05 18:31 ` dcb314 at hotmail dot com
2021-08-06  9:43 ` cvs-commit at gcc dot gnu.org
2021-09-06  9:10 ` [Bug target/101505] [10 " rguenth at gcc dot gnu.org
2022-06-28 10:45 ` jakub at gcc dot gnu.org
2023-07-07  9:44 ` 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-101505-4-kXI5r8LKEB@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).