[llvm] ff34432 - [LoopUtils] Remove unused Loop arg from addDiffRuntimeChecks (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 23 02:15:51 PDT 2022
Author: Florian Hahn
Date: 2022-08-23T10:15:28+01:00
New Revision: ff34432649fc663a36a3f864d8114010fb720afe
URL: https://github.com/llvm/llvm-project/commit/ff34432649fc663a36a3f864d8114010fb720afe
DIFF: https://github.com/llvm/llvm-project/commit/ff34432649fc663a36a3f864d8114010fb720afe.diff
LOG: [LoopUtils] Remove unused Loop arg from addDiffRuntimeChecks (NFC).
The argument is no longer used, remove it.
Added:
Modified:
llvm/include/llvm/Transforms/Utils/LoopUtils.h
llvm/lib/Transforms/Utils/LoopUtils.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils/LoopUtils.h b/llvm/include/llvm/Transforms/Utils/LoopUtils.h
index adb39a410b550..036cdf918c484 100644
--- a/llvm/include/llvm/Transforms/Utils/LoopUtils.h
+++ b/llvm/include/llvm/Transforms/Utils/LoopUtils.h
@@ -508,11 +508,9 @@ addRuntimeChecks(Instruction *Loc, Loop *TheLoop,
const SmallVectorImpl<RuntimePointerCheck> &PointerChecks,
SCEVExpander &Expander);
-Value *
-addDiffRuntimeChecks(Instruction *Loc, Loop *TheLoop,
- ArrayRef<PointerDiffInfo> Checks, SCEVExpander &Expander,
- function_ref<Value *(IRBuilderBase &, unsigned)> GetVF,
- unsigned IC);
+Value *addDiffRuntimeChecks(
+ Instruction *Loc, ArrayRef<PointerDiffInfo> Checks, SCEVExpander &Expander,
+ function_ref<Value *(IRBuilderBase &, unsigned)> GetVF, unsigned IC);
/// Struct to hold information about a partially invariant condition.
struct IVConditionInfo {
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 232964cd4344e..92f47a117faaa 100644
--- a/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -1665,8 +1665,7 @@ Value *llvm::addRuntimeChecks(
}
Value *llvm::addDiffRuntimeChecks(
- Instruction *Loc, Loop *TheLoop, ArrayRef<PointerDiffInfo> Checks,
- SCEVExpander &Expander,
+ Instruction *Loc, ArrayRef<PointerDiffInfo> Checks, SCEVExpander &Expander,
function_ref<Value *(IRBuilderBase &, unsigned)> GetVF, unsigned IC) {
LLVMContext &Ctx = Loc->getContext();
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index ecddd95fe0af6..39783e90d43dc 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -1897,7 +1897,7 @@ class GeneratedRTChecks {
if (DiffChecks) {
Value *RuntimeVF = nullptr;
MemRuntimeCheckCond = addDiffRuntimeChecks(
- MemCheckBlock->getTerminator(), L, *DiffChecks, MemCheckExp,
+ MemCheckBlock->getTerminator(), *DiffChecks, MemCheckExp,
[VF, &RuntimeVF](IRBuilderBase &B, unsigned Bits) {
if (!RuntimeVF)
RuntimeVF = getRuntimeVF(B, B.getIntNTy(Bits), VF);
More information about the llvm-commits
mailing list