public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5365] testsuite/103278 - adjust gcc.dg/tree-ssa/if-to-switch-3.c
@ 2021-11-18  9:02 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-11-18  9:02 UTC (permalink / raw)
  To: gcc-cvs

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

commit r12-5365-ge28afbb90f8eca31d0a658e92e2007eb0db2a964
Author: Richard Biener <rguenther@suse.de>
Date:   Thu Nov 18 09:49:38 2021 +0100

    testsuite/103278 - adjust gcc.dg/tree-ssa/if-to-switch-3.c
    
    Analysis shows that after the CD-DCE change we produce better
    code which makes if-to-switch run into case-values-threshold on
    some architectures, thus the switch is deemed to simple to be
    worth generating.  The following statically provides
    --param case-values-threshold to make the testcase less
    target dependent.
    
    2021-11-18  Richard Biener  <rguenther@suse.de>
    
            PR testsuite/103278
            * gcc.dg/tree-ssa/if-to-switch-3.c: Supply
            --param case-values-threshold=4.

Diff:
---
 gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-3.c b/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-3.c
index 707e6304892..a55231b3341 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-3.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-3.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-iftoswitch-optimized" } */
+/* Supplying case-values-threshold makes the testcase less target dependent.  */
+/* { dg-options "-O2 -fdump-tree-iftoswitch-optimized --param case-values-threshold=4" } */
 
 int IsMySuperRandomChar(int aChar)
 {


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

only message in thread, other threads:[~2021-11-18  9:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-18  9:02 [gcc r12-5365] testsuite/103278 - adjust gcc.dg/tree-ssa/if-to-switch-3.c Richard Biener

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