diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-01-17 14:31:35 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-01-17 14:31:35 +0000 |
commit | 24fd029a60618b49162a749d2b6767711f89a31b (patch) | |
tree | c0b78dabda3907d94ab672d4935d6afc17dd9251 /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | |
parent | 6f4d3a2e39fa41b278b22468a91474fd1f9d0955 (diff) | |
download | bcm5719-llvm-24fd029a60618b49162a749d2b6767711f89a31b.tar.gz bcm5719-llvm-24fd029a60618b49162a749d2b6767711f89a31b.zip |
[PM] Remove a dead field.
This was dead even before I refactored how we initialized it, but my
refactoring made it trivially dead and it is now caught by a Clang
warning. This fixes the warning and should clean up the -Werror bot
failures (sorry!).
llvm-svn: 226376
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp index e3e0c2fc6f3..6a5d8853362 100644 --- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp @@ -48,7 +48,6 @@ namespace { Loop *L; LoopInfo *LI; ScalarEvolution *SE; - const DataLayout *DL; // May be NULL SmallVectorImpl<WeakVH> &DeadInsts; @@ -56,9 +55,8 @@ namespace { public: SimplifyIndvar(Loop *Loop, ScalarEvolution *SE, LoopInfo *LI, - const DataLayout *DL, SmallVectorImpl<WeakVH> &Dead, - IVUsers *IVU = nullptr) - : L(Loop), LI(LI), SE(SE), DL(DL), DeadInsts(Dead), Changed(false) { + SmallVectorImpl<WeakVH> &Dead, IVUsers *IVU = nullptr) + : L(Loop), LI(LI), SE(SE), DeadInsts(Dead), Changed(false) { assert(LI && "IV simplification requires LoopInfo"); } @@ -557,10 +555,8 @@ void IVVisitor::anchor() { } bool simplifyUsersOfIV(PHINode *CurrIV, ScalarEvolution *SE, LPPassManager *LPM, SmallVectorImpl<WeakVH> &Dead, IVVisitor *V) { - DataLayoutPass *DLP = LPM->getAnalysisIfAvailable<DataLayoutPass>(); LoopInfo *LI = &LPM->getAnalysis<LoopInfoWrapperPass>().getLoopInfo(); - SimplifyIndvar SIV(LI->getLoopFor(CurrIV->getParent()), SE, LI, - DLP ? &DLP->getDataLayout() : nullptr, Dead); + SimplifyIndvar SIV(LI->getLoopFor(CurrIV->getParent()), SE, LI, Dead); SIV.simplifyUsers(CurrIV, V); return SIV.hasChanged(); } |