public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2707] Fix for an AutoFDO test.
@ 2022-09-16 23:37 Eugene Rozenfeld
  0 siblings, 0 replies; only message in thread
From: Eugene Rozenfeld @ 2022-09-16 23:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:eaddc87b51117c5f2346089999907c2de5780d37

commit r13-2707-geaddc87b51117c5f2346089999907c2de5780d37
Author: Eugene Rozenfeld <erozen@microsoft.com>
Date:   Fri Sep 16 16:25:25 2022 -0700

    Fix for an AutoFDO test.
    
    After https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=c17975d81aaed49ff759c20c68b31304a6953d58
    the expected inlining in indir-call--prof-2.c test happens during afdo phase instead of einline.
    This patch adjusts the test accordingly.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.dg/tree-prof/indir-call-prof-2.c: Fix dg-final-use-autofdo.

Diff:
---
 gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-2.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-2.c b/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-2.c
index 594c3f34d57..1d64d9f3f62 100644
--- a/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-2.c
+++ b/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-2.c
@@ -1,4 +1,4 @@
-/* { dg-options "-O2 -fno-early-inlining -fdump-ipa-profile-optimized -fdump-tree-einline-optimized" } */
+/* { dg-options "-O2 -fno-early-inlining -fdump-ipa-profile-optimized -fdump-ipa-afdo-optimized" } */
 volatile int one;
 static int
 add1 (int val)
@@ -31,5 +31,5 @@ main (void)
 }
 /* { dg-final-use-not-autofdo { scan-ipa-dump "Indirect call -> direct call.* add1 .will resolve by ipa-profile" "profile"} } */
 /* { dg-final-use-not-autofdo { scan-ipa-dump "Indirect call -> direct call.* sub1 .will resolve by ipa-profile" "profile"} } */
-/* { dg-final-use-autofdo { scan-tree-dump "Inlining add1/1 into main/4." "einline"} } */
-/* { dg-final-use-autofdo { scan-tree-dump "Inlining sub1/2 into main/4." "einline"} } */
+/* { dg-final-use-autofdo { scan-ipa-dump "Inlining add1/1 into main/4." "afdo"} } */
+/* { dg-final-use-autofdo { scan-ipa-dump "Inlining sub1/2 into main/4." "afdo"} } */

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

only message in thread, other threads:[~2022-09-16 23:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-16 23:37 [gcc r13-2707] Fix for an AutoFDO test Eugene Rozenfeld

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