[llvm] c9e250a - [LoopUtils] Rename a var in addDiffRuntimeChecks (NFC) (#130128)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 6 11:31:21 PST 2025
Author: Ramkumar Ramachandra
Date: 2025-03-06T19:31:18Z
New Revision: c9e250af8e4a6b8e83ad4a3b6216f8229e00aff5
URL: https://github.com/llvm/llvm-project/commit/c9e250af8e4a6b8e83ad4a3b6216f8229e00aff5
DIFF: https://github.com/llvm/llvm-project/commit/c9e250af8e4a6b8e83ad4a3b6216f8229e00aff5.diff
LOG: [LoopUtils] Rename a var in addDiffRuntimeChecks (NFC) (#130128)
Added:
Modified:
llvm/lib/Transforms/Utils/LoopUtils.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 42c70d2c163b5..84c08556f8a25 100644
--- a/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -2051,7 +2051,7 @@ Value *llvm::addDiffRuntimeChecks(
for (const auto &[SrcStart, SinkStart, AccessSize, NeedsFreeze] : Checks) {
Type *Ty = SinkStart->getType();
// Compute VF * IC * AccessSize.
- auto *VFTimesUFTimesSize =
+ auto *VFTimesICTimesSize =
ChkBuilder.CreateMul(GetVF(ChkBuilder, Ty->getScalarSizeInBits()),
ConstantInt::get(Ty, IC * AccessSize));
Value *Diff =
@@ -2059,13 +2059,13 @@ Value *llvm::addDiffRuntimeChecks(
// Check if the same compare has already been created earlier. In that case,
// there is no need to check it again.
- Value *IsConflict = SeenCompares.lookup({Diff, VFTimesUFTimesSize});
+ Value *IsConflict = SeenCompares.lookup({Diff, VFTimesICTimesSize});
if (IsConflict)
continue;
IsConflict =
- ChkBuilder.CreateICmpULT(Diff, VFTimesUFTimesSize, "
diff .check");
- SeenCompares.insert({{Diff, VFTimesUFTimesSize}, IsConflict});
+ ChkBuilder.CreateICmpULT(Diff, VFTimesICTimesSize, "
diff .check");
+ SeenCompares.insert({{Diff, VFTimesICTimesSize}, IsConflict});
if (NeedsFreeze)
IsConflict =
ChkBuilder.CreateFreeze(IsConflict, IsConflict->getName() + ".fr");
More information about the llvm-commits
mailing list