function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap if profiling after...
authorBernd Schmidt <bernds@codesourcery.com>
Wed, 5 Oct 2011 20:42:21 +0000 (20:42 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Wed, 5 Oct 2011 20:42:21 +0000 (20:42 +0000)
* function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
if profiling after the prologue.

From-SVN: r179577

gcc/ChangeLog
gcc/function.c

index b37b082fa4b276d2ab05d0053849e48bede7718b..c725dbaeb4630ae229012a7da4b45b51a9fe91a0 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
+
+       * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
+       if profiling after the prologue.
+
 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/50613
index 2c0b89780b5899022b669684a052cf5d2afda3e7..6484916cef0e5950b800e5b306167953ccdba233 100644 (file)
@@ -5571,6 +5571,7 @@ thread_prologue_and_epilogue_insns (void)
       }
       
   if (flag_shrink_wrap && HAVE_simple_return
+      && (targetm.profile_before_prologue () || !crtl->profile)
       && nonempty_prologue && !crtl->calls_eh_return)
     {
       HARD_REG_SET prologue_clobbered, prologue_used, live_on_edge;