]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/107323 - loop distribution partition ordering issue
authorRichard Biener <rguenther@suse.de>
Fri, 21 Oct 2022 07:45:44 +0000 (09:45 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 24 Jan 2023 14:42:28 +0000 (15:42 +0100)
commit28fe903730d2c6e424732184ab2d8b1e7d46db6c
treed5143b2a8342744013a2bdd092915c208dd85244
parentfb335c938bbd54e83af2d281f0ccf79df1c342b3
tree-optimization/107323 - loop distribution partition ordering issue

The following reverts part of the PR94125 fix which causes us to
use a bogus partition ordering after applying versioning for
alias to the testcase in PR107323.  Instead PR94125 is fixed by
appropriately considering to be merged SCCs when skipping edges
we want to ignore because of the alias versioning.

PR tree-optimization/107323
* tree-loop-distribution.c (pg_unmark_merged_alias_ddrs):
New function.
(loop_distribution::break_alias_scc_partitions): Revert
postorder save/restore from the PR94125 fix.  Instead
make sure to not ignore edges from SCCs we are going to
merge.

* gcc.dg/tree-ssa/pr107323.c: New testcase.

(cherry picked from commit 09f9814dc02c161ed78604c6df70b19b596f7524)
gcc/testsuite/gcc.dg/tree-ssa/pr107323.c [new file with mode: 0644]
gcc/tree-loop-distribution.c
This page took 0.065551 seconds and 5 git commands to generate.