]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/113902 - fix VUSE update in move_early_exit_stmts
authorRichard Biener <rguenther@suse.de>
Tue, 13 Feb 2024 10:38:48 +0000 (11:38 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 13 Feb 2024 11:43:18 +0000 (12:43 +0100)
commitaab45e2bbec340201f8faaccfa24756bc09cb7db
treeef56e7c74acb6445527fdc3e171a9cd511a9be7d
parent491e57451df47cda88f658601a92d6d006ae09d7
tree-optimization/113902 - fix VUSE update in move_early_exit_stmts

The following adjusts move_early_exit_stmts to track the last seen
VUSE instead of getting it from the last store which could be a PHI
where gimple_vuse doesn't work.

PR tree-optimization/113902
* tree-vect-loop.cc (move_early_exit_stmts): Track
last_seen_vuse for VUSE updating.

* gcc.dg/vect/pr113902.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr113902.c [new file with mode: 0644]
gcc/tree-vect-loop.cc