2013-05-22 Richard Biener <rguenther@suse.de>
commite3c6801afca90065665fe5dcccfbf3fbfe8aa5ff
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 May 2013 07:50:40 +0000 (22 07:50 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 May 2013 07:50:40 +0000 (22 07:50 +0000)
treea50993d36d7b1294fe96230ba9db992600fec45a
parent5a8ea7f6113d1594bb27a0faabbfd8a670dc06b5
2013-05-22  Richard Biener  <rguenther@suse.de>

Backport from mainline
2013-05-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/57318
* tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
estimate stmts with side-effects as likely eliminated.

2013-05-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/57330
* cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
preserve the call stmts fntype.

* gcc.dg/torture/pr57330.c: New testcase.

2013-05-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/57303
* tree-ssa-sink.c (statement_sink_location): Properly handle
self-assignments.

* gcc.dg/torture/pr57303.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@199179 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cgraph.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr57303.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr57330.c [new file with mode: 0644]
gcc/tree-ssa-loop-ivcanon.c
gcc/tree-ssa-sink.c