[PATCH] D133017: [LV] Use SCEV to check if the trip count <= VF * UF.
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 31 13:29:14 PDT 2022
reames added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/VPlan.cpp:608
+ SE.getConstant(TCS->getType(), State.VF.getKnownMinValue() * State.UF);
+ if (SE.isKnownViaNonRecursiveReasoning(CmpInst::ICMP_ULE, TCS, C)) {
auto *BOC =
----------------
Please don't change the SCEV interface for this. Just use isKnownPredicate. You don't care if the reasoning is recursive or not.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133017/new/
https://reviews.llvm.org/D133017
More information about the llvm-commits
mailing list