[PATCH] D125235: [LoopVectorize] Add overflow checks when tail-folding with scalable vectors
Paul Walker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 13 03:00:30 PDT 2022
paulwalker-arm accepted this revision.
paulwalker-arm added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:2986
+ Value *LHS = ConstantInt::get(
+ Count->getType(), cast<IntegerType>(Count->getType())->getMask());
+ LHS = Builder.CreateSub(LHS, Count);
----------------
There are now three uses or this so perhaps worth breaking out?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125235/new/
https://reviews.llvm.org/D125235
More information about the llvm-commits
mailing list