From 657959caa17ae0fd939b68973d78f9a7f274a81f Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Mon, 3 Jul 2000 06:33:03 +0000 Subject: [PATCH] alias.c (init_alias_analysis): Do not call prologue_epilogue_contains until after reload has completed. * alias.c (init_alias_analysis): Do not call prologue_epilogue_contains until after reload has completed. From-SVN: r34838 --- gcc/ChangeLog | 5 +++++ gcc/alias.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5649951..231ec25 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com) + + * alias.c (init_alias_analysis): Do not call + prologue_epilogue_contains until after reload has completed. + 2000-07-02 Benjamin Chelf * c-common.h (genrtl_begin_compound_stmt): Remove declaration. diff --git a/gcc/alias.c b/gcc/alias.c index 55cc212..28f34c1 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1984,7 +1984,12 @@ init_alias_analysis () rtx note, set; #if defined (HAVE_prologue) || defined (HAVE_epilogue) - if (prologue_epilogue_contains (insn)) + /* The prologue/epilouge 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 -- 2.7.4