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 &PointerChecks, SCEVExpander &Expander); -Value * -addDiffRuntimeChecks(Instruction *Loc, Loop *TheLoop, - ArrayRef Checks, SCEVExpander &Expander, - function_ref GetVF, - unsigned IC); +Value *addDiffRuntimeChecks( + Instruction *Loc, ArrayRef Checks, SCEVExpander &Expander, + function_ref 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 Checks, - SCEVExpander &Expander, + Instruction *Loc, ArrayRef Checks, SCEVExpander &Expander, function_ref 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);