re PR tree-optimization/71170 (ICE in rewrite_expr_tree, at tree-ssa-reassoc.c:3898)
authorKugan Vivekanandarajah <kuganv@linaro.org>
Tue, 24 May 2016 00:14:13 +0000 (00:14 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Tue, 24 May 2016 00:14:13 +0000 (00:14 +0000)
commitd2db36ddd24bb073aacc55b2d60936d0b477af2c
tree69a8d9c05c5f4d059f7e44e71efaef66b9533126
parentfe3f3340416fc6f2a197f2c057de4094f5974d9c
re PR tree-optimization/71170 (ICE in rewrite_expr_tree, at tree-ssa-reassoc.c:3898)

gcc/ChangeLog:

2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/71170
* tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
(add_to_ops_vec): Add stmt_to_insert.
(add_repeat_to_ops_vec): Init stmt_to_insert.
(insert_stmt_before_use): New.
(transform_add_to_multiply): Remove mult_stmt insertion and add it to ops vector.
(get_ops): Init stmt_to_insert.
(maybe_optimize_range_tests): Likewise.
(rewrite_expr_tree): Insert stmt_to_insert before use stmt.
(rewrite_expr_tree_parallel): Likewise.
(reassociate_bb): Likewise.

From-SVN: r236619
gcc/ChangeLog
gcc/tree-ssa-reassoc.c