public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/57940] New: [PATCH] Rerun df_analyze after delete_unmarked_insns during DCE
@ 2013-07-20  9:29 makhaloff at gmail dot com
  2014-02-22  8:51 ` [Bug rtl-optimization/57940] " ebotcazou at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: makhaloff at gmail dot com @ 2013-07-20  9:29 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57940

            Bug ID: 57940
           Summary: [PATCH] Rerun df_analyze after delete_unmarked_insns
                    during DCE
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: makhaloff at gmail dot com

Hello!

If delete_unmarked_insns deletes some insn, DF state might be
out of date, and, regs_ever_live might contain unused registers till the end.
Fixed by forcing regs_ever_live update and rerunning df_analyze () at
fini_dce().
I found this bug on my target (not included into main sources). But I can send
everything you need to reproduce this bug.
Using gcc-4.8.1 

2013-07-20  Alexey Makhalov  <makhaloff@gmail.com>

    * dce.c (fini_dce): Call df_analyze again just in case
delete_unmarked_insns removed anything.

--- dce.c       (revision 361)
+++ dce.c       (working copy)
@@ -745,6 +745,12 @@
       bitmap_obstack_release (&dce_blocks_bitmap_obstack);
       bitmap_obstack_release (&dce_tmp_bitmap_obstack);
     }
+
+  if (!df_in_progress)
+    {
+      df_compute_regs_ever_live (true);
+      df_analyze ();
+    }
 }


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug rtl-optimization/57940] [PATCH] Rerun df_analyze after delete_unmarked_insns during DCE
  2013-07-20  9:29 [Bug rtl-optimization/57940] New: [PATCH] Rerun df_analyze after delete_unmarked_insns during DCE makhaloff at gmail dot com
@ 2014-02-22  8:51 ` ebotcazou at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2014-02-22  8:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57940

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-22  8:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-20  9:29 [Bug rtl-optimization/57940] New: [PATCH] Rerun df_analyze after delete_unmarked_insns during DCE makhaloff at gmail dot com
2014-02-22  8:51 ` [Bug rtl-optimization/57940] " ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).