[ScopInfo] Fix: use raw source pointer.
commite48352b7806ac774bb851abe0fd3e271f93c5506
authorMichael Kruse <llvm@meinersbur.de>
Tue, 25 Oct 2016 13:37:43 +0000 (25 13:37 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Tue, 25 Oct 2016 13:37:43 +0000 (25 13:37 +0000)
treeefa72bd8402e6556c9cd726e2c476b0838596f44
parent76ff6d684ec6ecd5ad64ff1a1d67c48dab3d6ecc
[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().

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@285071 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScopInfo.cpp
test/ScopInfo/memcpy-raw-source.ll [new file with mode: 0644]