]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/101280 - revise interchange fix for PR101173
authorRichard Biener <rguenther@suse.de>
Thu, 1 Jul 2021 10:49:45 +0000 (12:49 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 1 Jul 2021 11:38:59 +0000 (13:38 +0200)
commit0a77c07b9b3fe83679358c3ef57721e09e2ad5fb
tree27e44924fdf36ccf4e2d4bd2f277440e76d08f71
parent09a7b00ac3075e3544978027f47b68fce54adabb
tree-optimization/101280 - revise interchange fix for PR101173

The following revises the original fix for PR101173 to correctly
check for a reversed dependence rather than disallowing a zero
distance.  It also adds a check from TSVC which asks for this
kind of interchange (but with a valid dependence).

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

PR tree-optimization/101280
PR tree-optimization/101173
* gimple-loop-interchange.cc
(tree_loop_interchange::valid_data_dependences): Revert
previous change and instead correctly handle DDR_REVERSED_P
dependence.

* gcc.dg/tree-ssa/loop-interchange-16.c: New testcase.
gcc/gimple-loop-interchange.cc
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-16.c [new file with mode: 0644]