diff options
author | Changpeng Fang <changpeng.fang@amd.com> | 2010-08-23 17:45:08 +0000 |
---|---|---|
committer | Changpeng Fang <cfang@gcc.gnu.org> | 2010-08-23 17:45:08 +0000 |
commit | bc068a23d095cf8bc0126c663fee5e8c50c6699c (patch) | |
tree | 9db10ff1386e8c9e1c0147f462aacb0ee6eaab28 /gcc/tree-flow.h | |
parent | f8895c4b7f7014fa8daf1d71e3c33c9bf933db97 (diff) | |
download | gcc-bc068a23d095cf8bc0126c663fee5e8c50c6699c.zip gcc-bc068a23d095cf8bc0126c663fee5e8c50c6699c.tar.gz gcc-bc068a23d095cf8bc0126c663fee5e8c50c6699c.tar.bz2 |
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-flow.h')
-rw-r--r-- | gcc/tree-flow.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index 04ba532..6731308 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -817,6 +817,7 @@ bool stmt_invariant_in_loop_p (struct loop *, gimple); bool multiplier_allowed_in_address_p (HOST_WIDE_INT, enum machine_mode, addr_space_t); unsigned multiply_by_cost (HOST_WIDE_INT, enum machine_mode, bool); +bool may_be_nonaddressable_p (tree expr); /* In tree-ssa-threadupdate.c. */ extern bool thread_through_all_blocks (bool); |