Commit 8c955a4b by Richard Biener Committed by Richard Biener

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
parent 230e2efd
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
......
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment