]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR tree-optimization/82726 (ICE in verify_ssa during GIMPLE pass: pcom)
authorBin Cheng <bin.cheng@arm.com>
Thu, 1 Feb 2018 12:00:57 +0000 (12:00 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 1 Feb 2018 12:00:57 +0000 (12:00 +0000)
commit4e0d4b6c25fc1ab7e1eb616ebbe3f2b87256a1e1
tree4528b9f8530855bf2365e22dc3021ce3987a5c26
parent4e6beb918b97a5e88ece846a922d0895f5ff93c8
backport: re PR tree-optimization/82726 (ICE in verify_ssa during GIMPLE pass: pcom)

Backport from mainline
2017-11-15  Bin Cheng  <bin.cheng@arm.com>

PR tree-optimization/82726
PR tree-optimization/70754
* tree-predcom.c (order_drefs_by_pos): New function.
(combine_chains): Move code setting has_max_use_after to...
(try_combine_chains): ...here.  New parameter.  Sort combined chains
according to position information.
(tree_predictive_commoning_loop): Update call to above function.
(update_pos_for_combined_chains, pcom_stmt_dominates_stmt_p): New.

testsuite

Backport from mainline
2017-11-15  Bin Cheng  <bin.cheng@arm.com>

PR tree-optimization/82726
* gcc.dg/tree-ssa/pr82726.c: New test.

Backport from mainline
2017-01-23  Bin Cheng  <bin.cheng@arm.com>

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

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