This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch PR44576]: Don't do further analysis if we could know prefetching is not benefitial
- From: Christian Borntraeger <borntraeger at de dot ibm dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Sebastian Pop <sebpop at gmail dot com>, "Fang, Changpeng" <Changpeng dot Fang at amd dot com>, Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>, Richard Guenther <richard dot guenther at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "uweigand at de dot ibm dot com" <uweigand at de dot ibm dot com>
- Date: Mon, 12 Jul 2010 12:48:05 +0200
- Subject: Re: [Patch PR44576]: Don't do further analysis if we could know prefetching is not benefitial
- References: <D4C76825A6780047854A11E93CDE84D02F7769@SAUSEXMBP01.amd.com> <201007121229.46685.borntraeger@de.ibm.com> <20100712103354.GT20208@tyan-ft48-01.lab.bos.redhat.com>
> -c doesn't belong into dg-options.
Thanks. Here is an updated version.
2010-07-11 Christian Borntraeger <borntraeger.de.ibm.com>
* gcc.dg/tree-ssa/prefetch-empty.c: New test.
Index: gcc/testsuite/gcc.dg/tree-ssa/prefetch-empty.c
===================================================================
*** /dev/null
--- gcc/testsuite/gcc.dg/tree-ssa/prefetch-empty.c
***************
*** 0 ****
--- 1,24 ----
+ /* This test case causes tree_num_loop_insns to return 0. This has created
+ problems when this value was used as divisor. */
+ /* { dg-do compile } */
+ /* { dg-options "-O1 -fprefetch-loop-arrays -march=core2" { target { i?86-*-* x86_64-*-* } } } */
+ /* { dg-options "-O1 -fprefetch-loop-arrays -march=z10" { target { s390x-*-* } } } */
+
+
+ typedef union tree_node *tree;
+ enum tree_code
+ {
+ E1
+ };
+ union tree_node
+ {
+ enum tree_code code:8;
+ };
+ void
+ build_def_use (tree exp)
+ {
+ while (exp)
+ switch (((enum tree_code) (exp)->code))
+ {
+ }
+ }