Update Polly for the AA/MemoryLocation refactoring.

llvm-svn: 239008
This commit is contained in:
Chandler Carruth 2015-06-04 03:49:46 +00:00
parent 7175f16cdb
commit bdb4a39ad8
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ bool ScopDetection::isInvariant(const Value &Val, const Region &Reg) const {
// When the instruction is a load instruction, check that no write to memory
// in the region aliases with the load.
if (const LoadInst *LI = dyn_cast<LoadInst>(I)) {
AliasAnalysis::Location Loc = AA->getLocation(LI);
auto Loc = MemoryLocation::get(LI);
// Check if any basic block in the region can modify the location pointed to
// by 'Loc'. If so, 'Val' is (likely) not invariant in the region.