@@ -389,8 +389,8 @@ void RuntimePointerChecking::generateChecks(
389
389
390
390
bool RuntimePointerChecking::needsChecking (
391
391
const RuntimeCheckingPtrGroup &M, const RuntimeCheckingPtrGroup &N) const {
392
- for (auto &I : M.Members )
393
- for (auto &J : N.Members )
392
+ for (const auto &I : M.Members )
393
+ for (const auto &J : N.Members )
394
394
if (needsChecking (I, J))
395
395
return true ;
396
396
return false ;
@@ -2062,9 +2062,10 @@ MemoryDepChecker::Dependence::DepType MemoryDepChecker::isDependent(
2062
2062
// Negative distances are not plausible dependencies.
2063
2063
if (SE.isKnownNonPositive (Dist)) {
2064
2064
if (SE.isKnownNonNegative (Dist)) {
2065
- if (HasSameSize)
2065
+ if (HasSameSize) {
2066
2066
// Write to the same location with the same size.
2067
2067
return Dependence::Forward;
2068
+ }
2068
2069
LLVM_DEBUG (dbgs () << " LAA: possibly zero dependence difference but "
2069
2070
" different type sizes\n " );
2070
2071
return Dependence::Unknown;
@@ -3029,10 +3030,11 @@ LoopAccessInfo::LoopAccessInfo(Loop *L, ScalarEvolution *SE,
3029
3030
if (TTI) {
3030
3031
TypeSize FixedWidth =
3031
3032
TTI->getRegisterBitWidth (TargetTransformInfo::RGK_FixedWidthVector);
3032
- if (FixedWidth.isNonZero ())
3033
+ if (FixedWidth.isNonZero ()) {
3033
3034
// Scale the vector width by 2 as rough estimate to also consider
3034
3035
// interleaving.
3035
3036
MaxTargetVectorWidthInBits = FixedWidth.getFixedValue () * 2 ;
3037
+ }
3036
3038
3037
3039
TypeSize ScalableWidth =
3038
3040
TTI->getRegisterBitWidth (TargetTransformInfo::RGK_ScalableVector);
0 commit comments