[ScopInfo] Expect the OriginalBaseAddr when looking at underlying instructions [NFC]
commit6ba336ad820f8b068f358a7fd94b31ec57e66804
authorTobias Grosser <tobias@grosser.es>
Thu, 9 Feb 2017 10:11:58 +0000 (9 10:11 +0000)
committerTobias Grosser <tobias@grosser.es>
Thu, 9 Feb 2017 10:11:58 +0000 (9 10:11 +0000)
tree19e3453021a0c74cd6da0543b6edfb877d6920bd
parent8bbc090670eed5be3f71d6d7fac06bf109350b7c
[ScopInfo] Expect the OriginalBaseAddr when looking at underlying instructions [NFC]

During SCoP construction we sometimes inspect the underlying IR by looking at
the base address of a MemoryAccess. In such cases, we always want the original
base address. Make this clear by calling getOriginalBaseAddr().

This is a non-functional change as getBaseAddr maps to getOriginalBaseAddr
at the moment.

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