Fix failure in merge_block.c testcase

Message ID 20211121151534.GC54340@kam.mff.cuni.cz
State Committed
Commit c8260767aa3b41017b075d8fde3a4065fa637db7
Headers
Series Fix failure in merge_block.c testcase |

Commit Message

Jan Hubicka Nov. 21, 2021, 3:15 p.m. UTC
  Hi,
this testcase needs -fno-ipa-modref becuase otherwise it hits the issue
that complete loop unrolling leaves somewhat mismatched profile.

Bootstrapped/regtested x86_64-linux, comitted.

gcc/testsuite/ChangeLog:

2021-11-21  Jan Hubicka  <hubicka@ucw.cz>

	PR ipa/103264
	* gcc.dg/tree-prof/merge_block.c: Add -fno-ipa-modref
  

Comments

Jeff Law Nov. 21, 2021, 4:53 p.m. UTC | #1
On 11/21/2021 8:15 AM, Jan Hubicka via Gcc-patches wrote:
> Hi,
> this testcase needs -fno-ipa-modref becuase otherwise it hits the issue
> that complete loop unrolling leaves somewhat mismatched profile.
>
> Bootstrapped/regtested x86_64-linux, comitted.
>
> gcc/testsuite/ChangeLog:
>
> 2021-11-21  Jan Hubicka  <hubicka@ucw.cz>
>
> 	PR ipa/103264
> 	* gcc.dg/tree-prof/merge_block.c: Add -fno-ipa-modref
Thank you.  I was planning to chase this down today.

jeff
  

Patch

diff --git a/gcc/testsuite/gcc.dg/tree-prof/merge_block.c b/gcc/testsuite/gcc.dg/tree-prof/merge_block.c
index 5da5ddff6a0..e8a8873f152 100644
--- a/gcc/testsuite/gcc.dg/tree-prof/merge_block.c
+++ b/gcc/testsuite/gcc.dg/tree-prof/merge_block.c
@@ -1,5 +1,5 @@ 
 
-/* { dg-options "-O2 -fno-ipa-pure-const -fdump-tree-optimized-blocks-details -fno-early-inlining" } */
+/* { dg-options "-O2 -fno-ipa-pure-const -fdump-tree-optimized-blocks-details -fno-early-inlining -fno-ipa-modref" } */
 int a[8];
 int t()
 {