Even at -O0 there may be a fair amount of DF computation performed when
compiling large units and part of it appears to be useless.
gcc/
* function.cc (thread_prologue_and_epilogue_insns): Update only
entry and exit blocks when not optimizing. Remove dead statement.
}
}
- /* Threading the prologue and epilogue changes the artificial refs
- in the entry and exit blocks. */
- epilogue_completed = 1;
- df_update_entry_exit_and_calls ();
+ /* Threading the prologue and epilogue changes the artificial refs in the
+ entry and exit blocks, and may invalidate DF info for tail calls. */
+ if (optimize)
+ df_update_entry_exit_and_calls ();
+ else
+ {
+ df_update_entry_block_defs ();
+ df_update_exit_block_uses ();
+ }
}
/* Reposition the prologue-end and epilogue-begin notes after