[IRBuilder] Extract base pointers directly from ScopArray
commit555c42b065c3080932f320f59da439233f31ab35
authorTobias Grosser <tobias@grosser.es>
Thu, 9 Feb 2017 09:34:42 +0000 (9 09:34 +0000)
committerTobias Grosser <tobias@grosser.es>
Thu, 9 Feb 2017 09:34:42 +0000 (9 09:34 +0000)
tree6d10884749f4068774b739304383534bc99e0a3b
parent36f903836cb00ac068c246d1ea172dca2edadc0c
[IRBuilder] Extract base pointers directly from ScopArray

Instead of iterating over statements and their memory accesses to extract the
set of available base pointers, just directly iterate over all ScopArray
objects. This reflects more the actual intend of the code: collect all arrays
(and their base pointers) to emit alias information that specifies that accesses
to different arrays cannot alias.

This change removes unnecessary uses of MemoryAddress::getBaseAddr() in
preparation for https://reviews.llvm.org/D28518.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@294574 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/IRBuilder.cpp
test/Isl/CodeGen/annotated_alias_scopes.ll