diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-06 16:29:08 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-06 17:04:21 +0000 |
| commit | 216dab915285c5b9e2c56be9b6541f35ccb96303 (patch) | |
| tree | e302908302ad66741293e39199cb315769764004 | |
| parent | c447e5d90e8624e69620c1876917601d905e7e35 (diff) | |
| download | bcm5719-llvm-216dab915285c5b9e2c56be9b6541f35ccb96303.tar.gz bcm5719-llvm-216dab915285c5b9e2c56be9b6541f35ccb96303.zip | |
LoopAccessAnalysis - fix uninitialized variable warnings. NFCI.
| -rw-r--r-- | llvm/include/llvm/Analysis/LoopAccessAnalysis.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h index 9e9aaa32c64..bbbf370c91f 100644 --- a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h +++ b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h @@ -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 |

