re PR tree-optimization/83518 (Missing optimization: useless instructions should...
authorRichard Biener <rguenther@suse.de>
Tue, 23 Jul 2019 10:00:24 +0000 (10:00 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 23 Jul 2019 10:00:24 +0000 (10:00 +0000)
commit62e3e66f130fc280eac0bbb6b69e9adca328c03b
tree83ec6d9b0fd5b3a0800a0d673c2e9204136fe1ff
parente1eb82f5aa4f6e9ed9a6a368b54d0eda785be85c
re PR tree-optimization/83518 (Missing optimization: useless instructions should be dropped)

2019-07-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/83518
* tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
init from a constant even when partial defs are already recorded.

c/
* gimple-parser.c (c_parser_parse_gimple_body): When we have
a CFG also rebuild cgraph edges.

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

From-SVN: r273732
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/gimple-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-79.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c