diff options
author | Ramkumar Ramachandra <ramkumar.ramachandra@codasip.com> | 2025-03-06 19:31:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-06 19:31:18 +0000 |
commit | c9e250af8e4a6b8e83ad4a3b6216f8229e00aff5 (patch) | |
tree | 9fe1723184366c85bc2a87a2f9b5aec9a42908c2 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | ddffb74afd870d284ba07f1cf6c67117a8ab8b33 (diff) | |
download | llvm-c9e250af8e4a6b8e83ad4a3b6216f8229e00aff5.zip llvm-c9e250af8e4a6b8e83ad4a3b6216f8229e00aff5.tar.gz llvm-c9e250af8e4a6b8e83ad4a3b6216f8229e00aff5.tar.bz2 |
[LoopUtils] Rename a var in addDiffRuntimeChecks (NFC) (#130128)
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUtils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp index 42c70d2..84c0855 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"); |