summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ivopts.c
diff options
context:
space:
mode:
authorChangpeng Fang <changpeng.fang@amd.com>2010-08-23 17:45:08 +0000
committerChangpeng Fang <cfang@gcc.gnu.org>2010-08-23 17:45:08 +0000
commitbc068a23d095cf8bc0126c663fee5e8c50c6699c (patch)
tree9db10ff1386e8c9e1c0147f462aacb0ee6eaab28 /gcc/tree-ssa-loop-ivopts.c
parentf8895c4b7f7014fa8daf1d71e3c33c9bf933db97 (diff)
downloadgcc-bc068a23d095cf8bc0126c663fee5e8c50c6699c.tar.gz
pr45260 Don't generate prefetch if the address of base could not be taken.
* tree-flow.h (may_be_nonaddressable_p): New definition. Make the existing static function global. *tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function is changed to global. *tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call may_be_nonaddressable_p on base, and don't collect this reference if the address of the base could not be taken. From-SVN: r163475
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r--gcc/tree-ssa-loop-ivopts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c
index a347c86025a..0029c762687 100644
--- a/gcc/tree-ssa-loop-ivopts.c
+++ b/gcc/tree-ssa-loop-ivopts.c
@@ -1640,7 +1640,7 @@ may_be_unaligned_p (tree ref, tree step)
/* Return true if EXPR may be non-addressable. */
-static bool
+bool
may_be_nonaddressable_p (tree expr)
{
switch (TREE_CODE (expr))