re PR target/77834 (ICE: in make_decl_rtl, at varasm.c:1311 with -O -ftree-pre -mstri...
authorJakub Jelinek <jakub@redhat.com>
Mon, 7 Nov 2016 17:35:16 +0000 (18:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 7 Nov 2016 17:35:16 +0000 (18:35 +0100)
PR target/77834
* dse.c (dse_step5): Call scan_reads even if just
insn_info->frame_read.  Improve and fix dump file messages.

From-SVN: r241917

gcc/ChangeLog
gcc/dse.c

index 6bc36e7c634336e417696a54b6d4f57bcb5d25e4..ba5386e0d25c0c54e3dfea0f285f1248a4dc0610 100644 (file)
@@ -1,5 +1,9 @@
 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
 
+       PR target/77834
+       * dse.c (dse_step5): Call scan_reads even if just
+       insn_info->frame_read.  Improve and fix dump file messages.
+
        PR target/78227
        * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
        cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
index 95d5757140e6b7272188b708cfb0e5a234233ef1..a7ae02200eb3aec7056f5cc057484ca0da852b04 100644 (file)
--- a/gcc/dse.c
+++ b/gcc/dse.c
@@ -3298,12 +3298,19 @@ dse_step5 (void)
                  bitmap_clear (v);
                }
              else if (insn_info->read_rec
-                       || insn_info->non_frame_wild_read)
+                      || insn_info->non_frame_wild_read
+                      || insn_info->frame_read)
                {
-                 if (dump_file && !insn_info->non_frame_wild_read)
-                   fprintf (dump_file, "regular read\n");
-                  else if (dump_file && (dump_flags & TDF_DETAILS))
-                   fprintf (dump_file, "non-frame wild read\n");
+                 if (dump_file && (dump_flags & TDF_DETAILS))
+                   {
+                     if (!insn_info->non_frame_wild_read
+                         && !insn_info->frame_read)
+                       fprintf (dump_file, "regular read\n");
+                     if (insn_info->non_frame_wild_read)
+                       fprintf (dump_file, "non-frame wild read\n");
+                     if (insn_info->frame_read)
+                       fprintf (dump_file, "frame read\n");
+                   }
                  scan_reads (insn_info, v, NULL);
                }
            }