re PR tree-optimization/91291 (gcc.dg/20020312-2.c FAILs)

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

	PR tree-optimization/91291
	* tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
	constant values.

From-SVN: r273903
This commit is contained in:
Richard Biener 2019-07-30 08:57:35 +00:00 committed by Richard Biener
parent 230e2efd78
commit 8c955a4b9c
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2019-07-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/91291
* tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
constant values.
2019-07-30 Jakub Jelinek <jakub@redhat.com>
PR middle-end/91216

View File

@ -6253,7 +6253,8 @@ void
rpo_elim::eliminate_push_avail (basic_block bb, tree leader)
{
tree valnum = VN_INFO (leader)->valnum;
if (valnum == VN_TOP)
if (valnum == VN_TOP
|| is_gimple_min_invariant (valnum))
return;
if (dump_file && (dump_flags & TDF_DETAILS))
{