[PATCH] D147355: [LV] Optimize trip count SCEV.
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 12 12:02:35 PDT 2023
nikic added a comment.
This seems like basically the same change as D147117 <https://reviews.llvm.org/D147117>, but in a different place. It would be nice if every place computing a trip count from a BE count didn't reimplement this.
================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:1002
+ OrigLoop, ICmpInst::ICMP_NE, BackedgeTakenCount,
+ SE.getNegativeSCEV(SE.getOne(BackedgeTakenCount->getType())))) {
+ return SE.getZeroExtendExpr(
----------------
Can use SE.getMinusOne() here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147355/new/
https://reviews.llvm.org/D147355
More information about the llvm-commits
mailing list