LoopAccessAnalysis - fix uninitialized variable warnings. NFCI.

This commit is contained in:
Simon Pilgrim 2019-11-06 16:29:08 +00:00
parent c447e5d90e
commit 216dab9152
1 changed files with 7 additions and 7 deletions

View File

@ -175,8 +175,8 @@ public:
};
MemoryDepChecker(PredicatedScalarEvolution &PSE, const Loop *L)
: PSE(PSE), InnermostLoop(L), AccessIdx(0), MaxSafeRegisterWidth(-1U),
FoundNonConstantDistanceDependence(false),
: PSE(PSE), InnermostLoop(L), AccessIdx(0), MaxSafeDepDistBytes(0),
MaxSafeRegisterWidth(-1U), FoundNonConstantDistanceDependence(false),
Status(VectorizationSafetyStatus::Safe), RecordDependences(true) {}
/// Register the location (instructions are given increasing numbers)
@ -750,11 +750,11 @@ private:
DenseMap<Loop *, std::unique_ptr<LoopAccessInfo>> LoopAccessInfoMap;
// The used analysis passes.
ScalarEvolution *SE;
const TargetLibraryInfo *TLI;
AliasAnalysis *AA;
DominatorTree *DT;
LoopInfo *LI;
ScalarEvolution *SE = nullptr;
const TargetLibraryInfo *TLI = nullptr;
AliasAnalysis *AA = nullptr;
DominatorTree *DT = nullptr;
LoopInfo *LI = nullptr;
};
/// This analysis provides dependence information for the memory