https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101280
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:0a77c07b9b3fe83679358c3ef57721e09e2ad5fb commit r12-1954-g0a77c07b9b3fe83679358c3ef57721e09e2ad5fb Author: Richard Biener <rguent...@suse.de> Date: Thu Jul 1 12:49:45 2021 +0200 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 <rguent...@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.