2016-04-06 Richard Biener <rguenther@suse.de>
commita6bd1ea936a0301c986aefe1ec51b43e65d1e6ca
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Apr 2016 10:31:27 +0000 (6 10:31 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Apr 2016 10:31:27 +0000 (6 10:31 +0000)
tree516043d650aa8e3041d19b3827b057992ba3c926
parente93d5f4342fc49e7175169d1e805a4a151ad3026
2016-04-06  Richard Biener  <rguenther@suse.de>

Backport from mainline
2016-03-11  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/70177
* gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
(extract_ops_from_tree): ... this.  In the 2 argument
overload remove _1 suffix.
* gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
(extract_ops_from_tree): ... this.
* gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
Adjust callers.
* tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
* tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
extract_ops_from_tree instead of 2 operand one.

* gcc.dg/pr70177.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@234776 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-expr.c
gcc/gimple-expr.h
gcc/gimple.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr70177.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.c
gcc/tree-ssa-loop-niter.c