pr45260 Don't generate prefetch if the address of base could not be taken.
authorcfang <cfang@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Aug 2010 17:45:08 +0000 (17:45 +0000)
committercfang <cfang@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Aug 2010 17:45:08 +0000 (17:45 +0000)
commit09a6f6f50279485f8727c768e35c18cc6a22afd4
tree9db10ff1386e8c9e1c0147f462aacb0ee6eaab28
parentb6414606073927bbdbbce859afd266303ae03b39
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163475 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-flow.h
gcc/tree-ssa-loop-ivopts.c
gcc/tree-ssa-loop-prefetch.c