mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
[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!). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226376 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -48,7 +48,6 @@ namespace {
|
|||||||
Loop *L;
|
Loop *L;
|
||||||
LoopInfo *LI;
|
LoopInfo *LI;
|
||||||
ScalarEvolution *SE;
|
ScalarEvolution *SE;
|
||||||
const DataLayout *DL; // May be NULL
|
|
||||||
|
|
||||||
SmallVectorImpl<WeakVH> &DeadInsts;
|
SmallVectorImpl<WeakVH> &DeadInsts;
|
||||||
|
|
||||||
@@ -56,9 +55,8 @@ namespace {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
SimplifyIndvar(Loop *Loop, ScalarEvolution *SE, LoopInfo *LI,
|
SimplifyIndvar(Loop *Loop, ScalarEvolution *SE, LoopInfo *LI,
|
||||||
const DataLayout *DL, SmallVectorImpl<WeakVH> &Dead,
|
SmallVectorImpl<WeakVH> &Dead, IVUsers *IVU = nullptr)
|
||||||
IVUsers *IVU = nullptr)
|
: L(Loop), LI(LI), SE(SE), DeadInsts(Dead), Changed(false) {
|
||||||
: L(Loop), LI(LI), SE(SE), DL(DL), DeadInsts(Dead), Changed(false) {
|
|
||||||
assert(LI && "IV simplification requires LoopInfo");
|
assert(LI && "IV simplification requires LoopInfo");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -557,10 +555,8 @@ void IVVisitor::anchor() { }
|
|||||||
bool simplifyUsersOfIV(PHINode *CurrIV, ScalarEvolution *SE, LPPassManager *LPM,
|
bool simplifyUsersOfIV(PHINode *CurrIV, ScalarEvolution *SE, LPPassManager *LPM,
|
||||||
SmallVectorImpl<WeakVH> &Dead, IVVisitor *V)
|
SmallVectorImpl<WeakVH> &Dead, IVVisitor *V)
|
||||||
{
|
{
|
||||||
DataLayoutPass *DLP = LPM->getAnalysisIfAvailable<DataLayoutPass>();
|
|
||||||
LoopInfo *LI = &LPM->getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
|
LoopInfo *LI = &LPM->getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
|
||||||
SimplifyIndvar SIV(LI->getLoopFor(CurrIV->getParent()), SE, LI,
|
SimplifyIndvar SIV(LI->getLoopFor(CurrIV->getParent()), SE, LI, Dead);
|
||||||
DLP ? &DLP->getDataLayout() : nullptr, Dead);
|
|
||||||
SIV.simplifyUsers(CurrIV, V);
|
SIV.simplifyUsers(CurrIV, V);
|
||||||
return SIV.hasChanged();
|
return SIV.hasChanged();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user