summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-prefetch.c
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2014-07-21 12:33:40 +0200
committerChristoph Muellner <christoph.muellner@theobroma-systems.com>2018-04-27 12:16:41 +0200
commit7c9039cf2c981fe243d2807ce4305f30555c5da3 (patch)
treee2ecae533ae9f08ddcf51624b7398ccfa77b52c0 /gcc/tree-ssa-loop-prefetch.c
parent36989845c3814cb0fbb441eaca21039785fd54bc (diff)
Adding -fnoalias to delcare non-aliasing on function level.
This allows optimization by assuring the compiler that pointers within the given function don't alias. The optimizations within this patch are: * pass_uninline_innermost_loops (new lowering pass) Uninline the innermost loop if noalias is enabled, by moving it into a separate function. * pass_peel_last_iteration (new optimization pass) Peel the last loop iteration if noalias is enabled.
Diffstat (limited to 'gcc/tree-ssa-loop-prefetch.c')
-rw-r--r--gcc/tree-ssa-loop-prefetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c
index 339eeafcfee3..5613eff983c3 100644
--- a/gcc/tree-ssa-loop-prefetch.c
+++ b/gcc/tree-ssa-loop-prefetch.c
@@ -158,7 +158,7 @@ along with GCC; see the file COPYING3. If not see
/* True if read can be prefetched by a write prefetch. */
#ifndef READ_CAN_USE_WRITE_PREFETCH
-#define READ_CAN_USE_WRITE_PREFETCH 0
+#define READ_CAN_USE_WRITE_PREFETCH 1
#endif
/* The size of the block loaded by a single prefetch. Usually, this is
@@ -172,7 +172,7 @@ along with GCC; see the file COPYING3. If not see
/* Do we have a forward hardware sequential prefetching? */
#ifndef HAVE_FORWARD_PREFETCH
-#define HAVE_FORWARD_PREFETCH 0
+#define HAVE_FORWARD_PREFETCH 1
#endif
/* Do we have a backward hardware sequential prefetching? */