]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/103361 - fix unroll-and-jam direction vector handling
authorRichard Biener <rguenther@suse.de>
Tue, 23 Nov 2021 09:11:41 +0000 (10:11 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 21 Apr 2022 12:51:14 +0000 (14:51 +0200)
commit4ed8728e2646897c98826cf43be2e4682d04fc2c
treeb60f7bb36e0c3dcceefb4f7b94fb24efc09e669c
parent8a7dd8900d0a183d843e9d8ec91e091dbe4fbd5b
tree-optimization/103361 - fix unroll-and-jam direction vector handling

This properly uses lambda_int instead of truncating the direction
vector to int which leads to false unexpected negative values.

2021-11-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/103361
* gimple-loop-jam.c (adjust_unroll_factor): Use lambda_int
for the dependence distance.
* tree-data-ref.c (print_lambda_vector): Properly print a lambda_int.

* g++.dg/torture/pr103361.C: New testcase.

(cherry picked from commit 6cd440670078af89d82cbb67e01a5ecec8eec238)
gcc/gimple-loop-jam.c
gcc/testsuite/g++.dg/torture/pr103361.C [new file with mode: 0644]
gcc/tree-data-ref.c