[polly] r239008 - Update Polly for the AA/MemoryLocation refactoring.
Chandler Carruth
chandlerc at gmail.com
Wed Jun 3 20:49:47 PDT 2015
Author: chandlerc
Date: Wed Jun 3 22:49:46 2015
New Revision: 239008
URL: http://llvm.org/viewvc/llvm-project?rev=239008&view=rev
Log:
Update Polly for the AA/MemoryLocation refactoring.
Modified:
polly/trunk/lib/Analysis/ScopDetection.cpp
Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=239008&r1=239007&r2=239008&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Wed Jun 3 22:49:46 2015
@@ -452,7 +452,7 @@ bool ScopDetection::isInvariant(const Va
// 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.
More information about the llvm-commits
mailing list