[polly] r238092 - Remove unnecessary indirection through SCEV
Tobias Grosser
tobias at grosser.es
Fri May 22 22:58:30 PDT 2015
Author: grosser
Date: Sat May 23 00:58:30 2015
New Revision: 238092
URL: http://llvm.org/viewvc/llvm-project?rev=238092&view=rev
Log:
Remove unnecessary indirection through SCEV
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=238092&r1=238091&r2=238092&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Sat May 23 00:58:30 2015
@@ -1724,10 +1724,7 @@ Scop::getOrCreateScopArrayInfo(Value *Ba
}
const ScopArrayInfo *Scop::getScopArrayInfo(Value *BasePtr) {
- const SCEV *PtrSCEV = SE->getSCEV(BasePtr);
- const SCEVUnknown *PtrBaseSCEV =
- cast<SCEVUnknown>(SE->getPointerBase(PtrSCEV));
- const ScopArrayInfo *SAI = ScopArrayInfoMap[PtrBaseSCEV->getValue()].get();
+ const ScopArrayInfo *SAI = ScopArrayInfoMap[BasePtr].get();
assert(SAI && "No ScopArrayInfo available for this base pointer");
return SAI;
}
More information about the llvm-commits
mailing list