[polly] r259500 - Remove unnecessary getAnalysis call [NFC]
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 2 06:14:20 PST 2016
Author: jdoerfert
Date: Tue Feb 2 08:14:20 2016
New Revision: 259500
URL: http://llvm.org/viewvc/llvm-project?rev=259500&view=rev
Log:
Remove unnecessary getAnalysis call [NFC]
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=259500&r1=259499&r2=259500&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Tue Feb 2 08:14:20 2016
@@ -3896,8 +3896,7 @@ void ScopInfo::buildAccessFunctions(Regi
bool IsExitBlock) {
// We do not build access functions for error blocks, as they may contain
// instructions we can not model.
- DominatorTree &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
- if (isErrorBlock(BB, R, *LI, DT) && !IsExitBlock)
+ if (isErrorBlock(BB, R, *LI, *DT) && !IsExitBlock)
return;
Loop *L = LI->getLoopFor(&BB);
More information about the llvm-commits
mailing list