]> 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>
Fri, 4 Apr 2025 10:10:03 +0000 (12:10 +0200)
commitc5e4e7617e6e6453e6b6995fb2e31bfe1dd28fdf
treee20e993992a7f53f278208bf4e791de8619a436e
parent8eeaaec278275db2be81792c833713f64c9d20eb
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>
(cherry picked from commit d3904a3ad9d7b4c8e5e536e5166b89548510fd48)
gcc/testsuite/gcc.dg/torture/pr117119.c [new file with mode: 0644]
gcc/tree-data-ref.cc