Home
last modified time | relevance | path

Searched refs:CurrentChecks (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DGuardWidening.cpp659 SmallVector<GuardWideningImpl::RangeCheck, 3> CurrentChecks; in combineRangeChecks() local
665 copy_if(Checks, std::back_inserter(CurrentChecks), IsCurrentCheck); in combineRangeChecks()
668 assert(CurrentChecks.size() != 0 && "We know we have at least one!"); in combineRangeChecks()
670 if (CurrentChecks.size() < 3) { in combineRangeChecks()
671 llvm::append_range(RangeChecksOut, CurrentChecks); in combineRangeChecks()
678 llvm::sort(CurrentChecks, [&](const GuardWideningImpl::RangeCheck &LHS, in combineRangeChecks()
685 const ConstantInt *MinOffset = CurrentChecks.front().getOffset(); in combineRangeChecks()
686 const ConstantInt *MaxOffset = CurrentChecks.back().getOffset(); in combineRangeChecks()
699 if (MaxDiff.isMinValue() || !all_of(drop_begin(CurrentChecks), OffsetOK)) in combineRangeChecks()
737 RangeChecksOut.emplace_back(CurrentChecks.front()); in combineRangeChecks()
[all …]