public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Redundant check for prologue_epilogue_contains in init_alias_analysis?
@ 2003-09-06 17:34 Zdenek Dvorak
  2003-09-07  3:59 ` Jim Wilson
  0 siblings, 1 reply; 4+ messages in thread
From: Zdenek Dvorak @ 2003-09-06 17:34 UTC (permalink / raw)
  To: gcc

Hello,

the following check in init_alias_analysis seems partially redundant,
partially wrong to me:

Index: alias.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/alias.c,v
retrieving revision 1.199
diff -c -3 -p -r1.199 alias.c
*** alias.c     12 Aug 2003 05:28:45 -0000      1.199
--- alias.c     22 Aug 2003 18:42:53 -0000
*************** init_alias_analysis (void)
*** 2785,2800 ****
            {
              rtx note, set;

- #if defined (HAVE_prologue) || defined (HAVE_epilogue)
-             /* The prologue/epilogue insns are not threaded onto the
-                insn chain until after reload has completed.  Thus,
-                there is no sense wasting time checking if INSN is in
-                the prologue/epilogue until after reload has completed.  */
-             if (reload_completed
-                 && prologue_epilogue_contains (insn))
-               continue;
- #endif
-
              /* If this insn has a noalias note, process it,  Otherwise,
                 scan for sets.  A simple set will have no side effects
                 which could change the base value of any other
register.  */
--- 2785,2790 ----


Calls to init_alias_analysis are of two types:

1) those before prologues and epilogues are added.  Then the condition
   is obviously useless.
2) those from scheduling.  Since scheduling reorders also prologue
   insns, it is wrong to ignore them here (in fact this caused a
   misscompilation with slightly modified hammer-branch gcc on ia64).

Am I correct with this analysis?

Zdenek

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

end of thread, other threads:[~2003-09-07 19:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-06 17:34 Redundant check for prologue_epilogue_contains in init_alias_analysis? Zdenek Dvorak
2003-09-07  3:59 ` Jim Wilson
2003-09-07 10:39   ` Zdenek Dvorak
2003-09-07 19:42     ` Jim Wilson

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).