[ScopInfo] Use ScopArrayInfo instead of base address
commit27697fa52069906d0b372a3bc6dd94204311891f
authorTobias Grosser <tobias@grosser.es>
Thu, 9 Feb 2017 23:12:22 +0000 (9 23:12 +0000)
committerTobias Grosser <tobias@grosser.es>
Thu, 9 Feb 2017 23:12:22 +0000 (9 23:12 +0000)
tree0aeccb7e557e091b13aa39044774d9a6d0de04af
parent6ba336ad820f8b068f358a7fd94b31ec57e66804
[ScopInfo] Use ScopArrayInfo instead of base address

When building alias groups, we sort different ScopArrays into unrelated groups.
Historically we identified arrays through their base pointer, as no
ScopArrayInfo class was yet available. This change changes the alias group
construction to reference arrays through their ScopArrayInfo object.

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@294649 91177308-0d34-0410-b5e6-96231b3b80d8
include/polly/ScopInfo.h
lib/Analysis/ScopInfo.cpp