public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "slyfox at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/106905] New: [13 Regression] ia64: ICE in in vect_peel_nonlinear_iv_init, at tree-vect-loop.cc:8412 on zstd-1.5.2
Date: Mon, 12 Sep 2022 08:53:15 +0000	[thread overview]
Message-ID: <bug-106905-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 106905
           Summary: [13 Regression] ia64: ICE in in
                    vect_peel_nonlinear_iv_init, at tree-vect-loop.cc:8412
                    on zstd-1.5.2
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: slyfox at gcc dot gnu.org
  Target Milestone: ---

The error apepared in this week's gcc-weekly snapshot. Original failure happens
to ICE on zstd-1.5.2 when compiling for ia64-unknown-linux-gnu target.
Extracted example:

// $ cat zdict.c.c
long ZDICT_fillNoise_p, ZDICT_trainFromBuffer_legacy_result;
unsigned ZDICT_fillNoise_acc;
int ZDICT_totalSampleSize_nbFiles;
static void ZDICT_fillNoise(void *buffer, long length) {
  unsigned prime2 = 9;
  for (ZDICT_fillNoise_p = 0; ZDICT_fillNoise_p < length; ZDICT_fillNoise_p++)
    ZDICT_fillNoise_acc *= ((char *)buffer)[ZDICT_fillNoise_p] = prime2;
}
long ZDICT_trainFromBuffer_legacy() {
  void *newBuff;
  long total;
  for (; ZDICT_totalSampleSize_nbFiles;)
    total += 0;
  long sBuffSize = total;
  newBuff = 0;
  ZDICT_fillNoise(newBuff + sBuffSize, 32);
  return ZDICT_trainFromBuffer_legacy_result;
}

Crashing:

$ ia64-unknown-linux-gnu-gcc-13.0.0 -std=c99 -Wall -Wextra -O3 -fPIC -c
zdict.c.c
during GIMPLE pass: vect
zdict.c.c: In function 'ZDICT_trainFromBuffer_legacy':
zdict.c.c:10:6: internal compiler error: in vect_peel_nonlinear_iv_init, at
tree-vect-loop.cc:8412
   10 | long ZDICT_trainFromBuffer_legacy() {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x142e907 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char
const*, __va_list_tag (*) [1], diagnostic_t)
        ???:0
0x142f757 internal_error(char const*, ...)
        ???:0
0x5db0de fancy_abort(char const*, int, char const*)
        ???:0
0x5c8a88 vect_peel_nonlinear_iv_init(gimple**, tree_node*, tree_node*,
tree_node*, vect_induction_op_type) [clone .cold]
        ???:0
0xd9b1f1 vect_do_peeling(_loop_vec_info*, tree_node*, tree_node*, tree_node**,
tree_node**, tree_node**, int, bool, bool, tree_node**)
        ???:0
0xd90776 vect_transform_loop(_loop_vec_info*, gimple*)
        ???:0
0xdc8a0b vect_transform_loops(hash_table<simduid_to_vf, false, xcallocator>*&,
loop*, gimple*, function*)
        ???:0
0xdc90a3 try_vectorize_loop(hash_table<simduid_to_vf, false, xcallocator>*&,
unsigned int*, loop*, function*)
        ???:0
0xdc960c (anonymous namespace)::pass_vectorize::execute(function*)
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ ia64-unknown-linux-gnu-gcc-13.0.0 -v
Using built-in specs.
COLLECT_GCC=/<<NIX>>/ia64-unknown-linux-gnu-stage-final-gcc-13.0.0/bin/ia64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/<<NIX>>/ia64-unknown-linux-gnu-stage-final-gcc-13.0.0/libexec/gcc/ia64-unknown-linux-gnu/13.0.0/lto-wrapper
Target: ia64-unknown-linux-gnu
Configured with:
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.0.0 20220911 (experimental) (GCC)

x86_64 target does not seem to crash when executed as is.

             reply	other threads:[~2022-09-12  8:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-12  8:53 slyfox at gcc dot gnu.org [this message]
2022-09-12  9:47 ` [Bug tree-optimization/106905] [13 Regression] ia64: ICE in in vect_peel_nonlinear_iv_init, at tree-vect-loop.cc:8412 on zstd-1.5.2 since r13-2503-gc13223b790bbc5 marxin at gcc dot gnu.org
2022-09-13  2:48 ` asolokha at gmx dot com
2022-09-13  5:16 ` crazylht at gmail dot com
2022-09-13  5:18 ` crazylht at gmail dot com
2022-09-14  7:46 ` cvs-commit at gcc dot gnu.org
2022-09-14  7:51 ` crazylht at gmail dot com
2022-09-14 20:34 ` slyfox at gcc dot gnu.org
2022-10-18  8:47 ` 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-106905-4@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).