[PATCH] D102404: [InstCombine] Add instcombine fold for extractelement + splat for scalable vectors
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 2 08:42:55 PDT 2021
sdesmalen accepted this revision.
sdesmalen added a comment.
This revision is now accepted and ready to land.
Thanks, LGTM with my nit addressed.
================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:4495
return PoisonValue::get(VecVTy->getElementType());
+ // It handle cases where splat is the operand of the extract
+ if (IdxC->getValue().ult(MinNumElts))
----------------
nit: Handle case where an element is extracted from a splat.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102404/new/
https://reviews.llvm.org/D102404
More information about the llvm-commits
mailing list