Skip to content

Commit 216dab9

Browse files
committed
LoopAccessAnalysis - fix uninitialized variable warnings. NFCI.
1 parent c447e5d commit 216dab9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/include/llvm/Analysis/LoopAccessAnalysis.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ class MemoryDepChecker {
175175
};
176176

177177
MemoryDepChecker(PredicatedScalarEvolution &PSE, const Loop *L)
178-
: PSE(PSE), InnermostLoop(L), AccessIdx(0), MaxSafeRegisterWidth(-1U),
179-
FoundNonConstantDistanceDependence(false),
178+
: PSE(PSE), InnermostLoop(L), AccessIdx(0), MaxSafeDepDistBytes(0),
179+
MaxSafeRegisterWidth(-1U), FoundNonConstantDistanceDependence(false),
180180
Status(VectorizationSafetyStatus::Safe), RecordDependences(true) {}
181181

182182
/// Register the ___location (instructions are given increasing numbers)
@@ -750,11 +750,11 @@ class LoopAccessLegacyAnalysis : public FunctionPass {
750750
DenseMap<Loop *, std::unique_ptr<LoopAccessInfo>> LoopAccessInfoMap;
751751

752752
// The used analysis passes.
753-
ScalarEvolution *SE;
754-
const TargetLibraryInfo *TLI;
755-
AliasAnalysis *AA;
756-
DominatorTree *DT;
757-
LoopInfo *LI;
753+
ScalarEvolution *SE = nullptr;
754+
const TargetLibraryInfo *TLI = nullptr;
755+
AliasAnalysis *AA = nullptr;
756+
DominatorTree *DT = nullptr;
757+
LoopInfo *LI = nullptr;
758758
};
759759

760760
/// This analysis provides dependence information for the memory

0 commit comments

Comments
 (0)