re PR tree-optimization/91291 (gcc.dg/20020312-2.c FAILs)
authorRichard Biener <rguenther@suse.de>
Tue, 30 Jul 2019 08:57:35 +0000 (08:57 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 30 Jul 2019 08:57:35 +0000 (08:57 +0000)
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

gcc/ChangeLog
gcc/tree-ssa-sccvn.c

index f69542dc536e973aa39f32c81cf5c3217cf56af1..1f71491727f159afaed42e7e9543932d19b2d179 100644 (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
index a2cb237293e4bd427fa0c8a9af29701b78b6d63e..23f7400f2e9201929093750e04b60d1597297e88 100644 (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))
     {