2017-12-07 Richard Biener <rguenther@suse.de>
commit4e47d7a1daeaff8da441fce06b0f841897fbabef
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Dec 2017 13:21:51 +0000 (7 13:21 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Dec 2017 13:21:51 +0000 (7 13:21 +0000)
tree123746bec470ee8bada54b15b044d6fccb91166a
parentfd2ce043154c55383dad745258bcea0475267116
2017-12-07  Richard Biener  <rguenther@suse.de>

PR tree-optimization/83296
PR tree-optimization/67769
* tree-ssa-phiopt.c (conditional_replacement): Do not reset
flow sensitive info in an unrelated BB.
(value_replacement): Use reset_flow_sensitive_info.
(minmax_replacement): Reset flow sensitive info on the def
we move.  Do not reset flow sensitive info in the whole BB
we move the stmt to.
(abs_replacement): Likewise.

* g++.dg/warn/Wstringop-overflow-1.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255466 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wstringop-overflow-1.C [new file with mode: 0644]
gcc/tree-ssa-phiopt.c