]> git.ipfire.org Git - thirdparty/gcc.git/commit
2015-10-09 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Oct 2015 08:12:18 +0000 (08:12 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Oct 2015 08:12:18 +0000 (08:12 +0000)
commit717ceeabec2a3e79448b8db8b3fc930b09c34458
treea54ff8c6d5c8ec6eb2b4f543dcefbd2c343e3444
parentc05c1b41d370b14bc94421f138d13e76831253d1
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228635 138bc75d-0d04-0410-961f-82ee72b054a4
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