The argument is no longer used, remove it.
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 {
}
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();
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);