]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/98758 - fix integer arithmetic in data-ref analysis
authorRichard Biener <rguenther@suse.de>
Wed, 20 Jan 2021 07:48:34 +0000 (08:48 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 3 Mar 2021 09:50:49 +0000 (10:50 +0100)
commit85977f624a34eac309f9d77a58164553dfc82975
tree649c461fec855602d9ae9fef67cf7f5f1fb57301
parent268b54382e5248ee1a5e3f4a0841358e03290d17
tree-optimization/98758 - fix integer arithmetic in data-ref analysis

This fixes some int arithmetic issues and a bogus truncation.

2021-01-20  Richard Biener  <rguenther@suse.de>

PR tree-optimization/98758
* tree-data-ref.c (int_divides_p): Use lambda_int arguments.
(lambda_matrix_right_hermite): Avoid undefinedness with
signed integer abs and multiplication.
(analyze_subscript_affine_affine): Use lambda_int.

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

(cherry picked from commit 34599780d0de72faf5719ea08d11a061722b9d19)
gcc/testsuite/gcc.dg/torture/pr98758.c [new file with mode: 0644]
gcc/tree-data-ref.c