diff options
author | Richard Biener <rguenther@suse.de> | 2015-04-28 07:26:41 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-04-28 07:26:41 +0000 |
commit | 85ebc1938f831130e98e8b0865cb172487254818 (patch) | |
tree | b1f8fc210896c895aad096222e3fc7480d565c31 /gcc/config.gcc | |
parent | a66dfffdb8946993ee06fe1ec9fdc3cbda5d96c6 (diff) | |
download | gcc-85ebc1938f831130e98e8b0865cb172487254818.zip gcc-85ebc1938f831130e98e8b0865cb172487254818.tar.gz gcc-85ebc1938f831130e98e8b0865cb172487254818.tar.bz2 |
re PR c++/65851 (ice in set_lattice_value at tree-ssa-cc p.c:535)
2015-04-28 Richard Biener <rguenther@suse.de>
PR tree-optimization/65851
* tree-ssa-ccp.c (set_lattice_value): Perform a meet when
changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
(ccp_lattice_meet): Remove stray argument. Use operand_equal_p
rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
(ccp_visit_phi_node): Adjust.
(evaluate_stmt): For simplifications to SSA names return its
lattice value if that isn't VARYING. Return immediately when
simplified to a constant.
(visit_assignment): Adjust.
(ccp_visit_stmt): Likewise.
* g++.dg/torture/pr65851.C: New testcase.
From-SVN: r222510
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions