forked from OSchip/llvm-project
Update Polly for the AA/MemoryLocation refactoring.
llvm-svn: 239008
This commit is contained in:
parent
7175f16cdb
commit
bdb4a39ad8
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue