Hi,
This simple patch fixes PR94125 by updating post order number for merged SCC.
The root cause is after computing SCC with runtime alias edges skipped, the post
order info is changed and it's possible a partition is scheduled after another 
where
should be scheduled before.  Note that updating to the minimal post order number
is safe, only partitions separated from SCC because of skipping runtime alias 
edges
can be assigned larger post oder than the original precedent one.

Bootstrap and test on x86_64, test case also added.

Thanks,
bin

2020-03-15  Bin Cheng  <bin.ch...@linux.alibaba.com>

        PR tree-optimization/94125
        * tree-loop-distribution.c
        (loop_distribution::break_alias_scc_partitions): Update post ordeer
        number for merged scc.

gcc/testsuite
2020-03-15  Bin Cheng  <bin.ch...@linux.alibaba.com>

        PR tree-optimization/94125
        * gcc.dg/tree-ssa/pr94125.c: New test.

Attachment: 0001-pr94125.patch
Description: Binary data

Reply via email to