re PR tree-optimization/82726 (ICE in verify_ssa during GIMPLE pass: pcom)
authorBin Cheng <bin.cheng@arm.com>
Wed, 15 Nov 2017 16:20:21 +0000 (16:20 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Wed, 15 Nov 2017 16:20:21 +0000 (16:20 +0000)
commitbd9cc42bb85bef57fb5ae6639599966c3b0468b6
tree8f38aed8816aca0212a905bb05b8b259d3978ab4
parent1ad3d8aa05a6668ddfa70fe5118626413d5087ba
re PR tree-optimization/82726 (ICE in verify_ssa during GIMPLE pass: pcom)

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.

gcc/testsuite
* gcc.dg/tree-ssa/pr82726.c: New test.

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