[ScopInfo] Fix: use raw source pointer.
authorMichael Kruse <llvm@meinersbur.de>
Tue, 25 Oct 2016 13:37:43 +0000 (13:37 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Tue, 25 Oct 2016 13:37:43 +0000 (13:37 +0000)
commit426e6f71f80b52f0e46fdf28add25525b30e657c
tree53782f8f7413c3d91fcfa4315b6d758e533286e8
parent62fbfe4e21fc0e2e57bea6880aa0332b5cec531a
[ScopInfo] Fix: use raw source pointer.

When adding an llvm.memcpy instruction to AliasSetTracker, it uses the raw
source and target pointers which preserve bitcasts.
MemAccInst::getPointerOperand() also returns the raw target pointers, but
Scop::buildAliasGroups() did not for the source pointer. This lead to mismatches
between AliasSetTracker and ScopInfo on which pointer to use.

Fixed by also using raw pointers in Scop::buildAliasGroups().

llvm-svn: 285071
polly/lib/Analysis/ScopInfo.cpp
polly/test/ScopInfo/memcpy-raw-source.ll [new file with mode: 0644]