re PR tree-optimization/70754 (ICE during predictive commoning)
authorBin Cheng <bin.cheng@arm.com>
Mon, 23 Jan 2017 15:59:19 +0000 (15:59 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Mon, 23 Jan 2017 15:59:19 +0000 (15:59 +0000)
commit8539a302cdc56a76a797a18a83d5d68d9cd9f94a
treee54ee2726df9d979df31710b46829d4d7191a097
parent61ad58f3aa6aac0e9b91e175dd821388c5fdf320
re PR tree-optimization/70754 (ICE during predictive commoning)

PR tree-optimization/70754
* tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
(reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
combined stmt before it if not NULL.
(combine_chains): Process refs reversely and compute dominance point
for root ref.

gcc/testsuite
PR tree-optimization/70754
* gfortran.dg/pr70754.f90: New test.

From-SVN: r244815
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr70754.f90 [new file with mode: 0644]
gcc/tree-predcom.c