This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Use known value ranges while evaluating ipa predicates
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, mjambor at suse dot cz, rguenther at suse dot de
- Date: Fri, 15 Nov 2019 09:18:14 +0100
- Subject: Re: Use known value ranges while evaluating ipa predicates
- References: <20191112130332.b5dyohbxz7s4k4op@kam.mff.cuni.cz> <20191114234605.GG4650@tucnak>
> PASS: gcc.dg/ipa/inline-9.c (test for excess errors)
> gcc.dg/ipa/inline-9.c: dump file does not exist
> UNRESOLVED: gcc.dg/ipa/inline-9.c scan-tree-dump inline "Inlined 1 calls"
>
> but fixing the obvious bug in there, s/scan-tree-dump/scan-ipa-dump/
> doesn't help, nothing is really inlined.
It gets inlined, but need -details to get the message.
I remember correcting this testcase before, but I must have used old
copy in the patch. Sorry for that.
The following makes testcase to pass.
Honza
* gcc.dg/ipa/inline-9.c: Fix template.
Index: testsuite/gcc.dg/ipa/inline-9.c
===================================================================
--- testsuite/gcc.dg/ipa/inline-9.c (revision 278222)
+++ testsuite/gcc.dg/ipa/inline-9.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-Os -fdump-ipa-inline" } */
+/* { dg-options "-Os -fdump-ipa-inline-details" } */
int foo (void);
int test(int a)
{
@@ -20,4 +20,4 @@ main()
for (int i=0;i<100;i++)
test(i);
}
-/* { dg-final { scan-tree-dump "Inlined 1 calls" "inline" } } */
+/* { dg-final { scan-ipa-dump "Inlined 1 calls" "inline" } } */