re PR middle-end/67891 (FAIL: gcc.dg/pr43300.c (internal compiler error) on alpha...
authorRichard Biener <rguenther@suse.de>
Fri, 9 Oct 2015 08:12:18 +0000 (08:12 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 9 Oct 2015 08:12:18 +0000 (08:12 +0000)
commitc0f6274015fa8bc650f9ded206c1a0f602b1254d
treea54ff8c6d5c8ec6eb2b4f543dcefbd2c343e3444
parent2795c84a46d65e5a4bbb548438da597c5863cad9
re PR middle-end/67891 (FAIL: gcc.dg/pr43300.c (internal compiler error) on alpha-linux-gnu)

2015-10-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/67891
* gimple-match.h (gimple_simplified_result_is_gimple_val):
New helper.
(gimple_resimplify1): Declare.
(gimple_resimplify2): Likewise.
(gimple_resimplify3): Likewise.
* gimple-match-head.c (gimple_resimplify1): Export.
(gimple_resimplify2): Likewise.
(gimple_resimplify3): Likewise.
(maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
* gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
* tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
to avoid creating stmts without VN info.

* gcc.dg/tree-ssa/pr67891.c: New testcase.

From-SVN: r228635
gcc/ChangeLog
gcc/gimple-fold.c
gcc/gimple-match-head.c
gcc/gimple-match.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr67891.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c