@@ -2051,21 +2051,21 @@ Value *llvm::addDiffRuntimeChecks(
2051
2051
for (const auto &[SrcStart, SinkStart, AccessSize, NeedsFreeze] : Checks) {
2052
2052
Type *Ty = SinkStart->getType ();
2053
2053
// Compute VF * IC * AccessSize.
2054
- auto *VFTimesUFTimesSize =
2054
+ auto *VFTimesICTimesSize =
2055
2055
ChkBuilder.CreateMul (GetVF (ChkBuilder, Ty->getScalarSizeInBits ()),
2056
2056
ConstantInt::get (Ty, IC * AccessSize));
2057
2057
Value *Diff =
2058
2058
Expander.expandCodeFor (SE.getMinusSCEV (SinkStart, SrcStart), Ty, Loc);
2059
2059
2060
2060
// Check if the same compare has already been created earlier. In that case,
2061
2061
// there is no need to check it again.
2062
- Value *IsConflict = SeenCompares.lookup ({Diff, VFTimesUFTimesSize });
2062
+ Value *IsConflict = SeenCompares.lookup ({Diff, VFTimesICTimesSize });
2063
2063
if (IsConflict)
2064
2064
continue ;
2065
2065
2066
2066
IsConflict =
2067
- ChkBuilder.CreateICmpULT (Diff, VFTimesUFTimesSize , " diff.check" );
2068
- SeenCompares.insert ({{Diff, VFTimesUFTimesSize }, IsConflict});
2067
+ ChkBuilder.CreateICmpULT (Diff, VFTimesICTimesSize , " diff.check" );
2068
+ SeenCompares.insert ({{Diff, VFTimesICTimesSize }, IsConflict});
2069
2069
if (NeedsFreeze)
2070
2070
IsConflict =
2071
2071
ChkBuilder.CreateFreeze (IsConflict, IsConflict->getName () + " .fr" );
0 commit comments