]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/103816 - detect offset overflow in SLP group analysis
authorRichard Biener <rguenther@suse.de>
Wed, 5 Jan 2022 09:14:52 +0000 (10:14 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 5 Jan 2022 10:56:36 +0000 (11:56 +0100)
commit1021b72bf6542f3c08e5404b65063216ee1b06f7
tree95640fc940dbfa2256cedfcb893632052a2619c6
parenta4c2e62d60f47d47cdd94951e16b0de50495cdab
tree-optimization/103816 - detect offset overflow in SLP group analysis

This makes sure to detect overflow when computing DR_GROUP_GAP
and DR_GROUP_SIZE more thoroughly so artificial testcases like the
added one are not fooling the existing check.

2022-01-05  Richard Biener  <rguenther@suse.de>

PR tree-optimization/103816
* tree-vect-data-refs.c (vect_analyze_group_access_1): Also
check DR_GROUP_GAP compute for overflow and representability.

* gcc.dg/torture/pr103816.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr103816.c [new file with mode: 0644]
gcc/tree-vect-data-refs.c