]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/117119 - ICE with int128 IV in dataref analysis
authorRichard Biener <rguenther@suse.de>
Mon, 13 Jan 2025 08:12:23 +0000 (09:12 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 13 Jan 2025 09:38:47 +0000 (10:38 +0100)
commitd3904a3ad9d7b4c8e5e536e5166b89548510fd48
tree9af5f6fb02250d29c30eb2b05d4b7139ac4421de
parentc0c47fc89ddcc3b1fbb0e5f3040fc52d93ca0be0
tree-optimization/117119 - ICE with int128 IV in dataref analysis

Here's another fix for a missing check that an IV value fits in a
HIW.  It's originally from Stefan.

PR tree-optimization/117119
* tree-data-ref.cc (initialize_matrix_A): Check whether
an INTEGER_CST fits in HWI, otherwise return chrec_dont_know.

* gcc.dg/torture/pr117119.c: New testcase.

Co-Authored-By: Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
gcc/testsuite/gcc.dg/torture/pr117119.c [new file with mode: 0644]
gcc/tree-data-ref.cc