[PATCH] D106358: [InstCombine] Add more complex folds for extractelement + stepvector
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 29 02:41:18 PDT 2021
david-arm marked 2 inline comments as done.
david-arm added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp:68
+ cast<IntrinsicInst>(V)->getIntrinsicID() ==
+ Intrinsic::experimental_stepvector) {
+ ElementCount EC = cast<VectorType>(V->getType())->getElementCount();
----------------
peterwaller-arm wrote:
> Does this condition neaten with match syntax like `match(V, m_Intrinsic<Intrinsic::experimental_stepvector>())`?
Great suggestion, thanks @peterwaller-arm!
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106358/new/
https://reviews.llvm.org/D106358
More information about the llvm-commits
mailing list