[llvm] 216dab9 - LoopAccessAnalysis - fix uninitialized variable warnings. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 6 09:11:53 PST 2019
Author: Simon Pilgrim
Date: 2019-11-06T17:04:21Z
New Revision: 216dab915285c5b9e2c56be9b6541f35ccb96303
URL: https://github.com/llvm/llvm-project/commit/216dab915285c5b9e2c56be9b6541f35ccb96303
DIFF: https://github.com/llvm/llvm-project/commit/216dab915285c5b9e2c56be9b6541f35ccb96303.diff
LOG: LoopAccessAnalysis - fix uninitialized variable warnings. NFCI.
Added:
Modified:
llvm/include/llvm/Analysis/LoopAccessAnalysis.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
index 9e9aaa32c64f..bbbf370c91fe 100644
--- a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
+++ b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
@@ -175,8 +175,8 @@ class MemoryDepChecker {
};
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 @@ class LoopAccessLegacyAnalysis : public FunctionPass {
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
More information about the llvm-commits
mailing list