re PR tree-optimization/83128 (Unable to optimize {m,c}alloc when strings builtin...
authorRichard Biener <rguenther@suse.de>
Fri, 24 Nov 2017 09:40:40 +0000 (09:40 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 24 Nov 2017 09:40:40 +0000 (09:40 +0000)
commit6a248fce5694ba4304f692a5ebeff0bb965e40a2
treedf42271519e4d9837d766d5e0ce881abc165e6f8
parent97e1c8786bdb4e54520d9135f8ec378237872dbb
re PR tree-optimization/83128 (Unable to optimize {m,c}alloc when strings builtin are used)

2017-11-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/83128
* tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle STRING_CSTs.
(vn_reference_lookup_3): Likewise.

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

From-SVN: r255136
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-62.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c