public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5157] Fix PR rtl-optimization/108274
@ 2023-01-13 21:15 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2023-01-13 21:15 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4fa6845b4b29f33cc7ea3d8ff49b61bb1f460561

commit r13-5157-g4fa6845b4b29f33cc7ea3d8ff49b61bb1f460561
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Fri Jan 13 22:05:28 2023 +0100

    Fix PR rtl-optimization/108274
    
    Unlike other IPA passes, the ICF pass can be run at -O0 and some testcases
    rely on this in the testsuite.  Now it effectively creates a tail call so
    the DF information needs be updated in this case after epilogue creation.
    
    gcc/
            PR rtl-optimization/108274
            * function.cc (thread_prologue_and_epilogue_insns): Also update the
            DF information for calls in a few more cases.

Diff:
---
 gcc/function.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/function.cc b/gcc/function.cc
index 27ba880368a..cfc4d2f74af 100644
--- a/gcc/function.cc
+++ b/gcc/function.cc
@@ -6266,7 +6266,10 @@ thread_prologue_and_epilogue_insns (void)
 
   /* 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)
+  if (optimize
+      || flag_optimize_sibling_calls
+      || flag_ipa_icf_functions
+      || in_lto_p)
     df_update_entry_exit_and_calls ();
   else
     {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-13 21:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13 21:15 [gcc r13-5157] Fix PR rtl-optimization/108274 Eric Botcazou

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