Redundant check for prologue_epilogue_contains in init_alias_analysis?
Zdenek Dvorak
rakdver@atrey.karlin.mff.cuni.cz
Sat Sep 6 17:34:00 GMT 2003
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
More information about the Gcc
mailing list