[PATCH] D102404: [InstCombine] Add instcombine fold for extractelement + splat for scalable vectors

Caroline via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 25 04:27:09 PDT 2021


CarolineConcatto updated this revision to Diff 347632.
CarolineConcatto added a comment.
Herald added a subscriber: dexonsmith.

- Add implementation and test to simplify constants
- Change check for splat in visitExtractElement


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102404/new/

https://reviews.llvm.org/D102404

Files:
  llvm/lib/IR/ConstantFold.cpp
  llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  llvm/test/Transforms/InstCombine/vscale_extractelement-inseltpoison.ll
  llvm/test/Transforms/InstCombine/vscale_extractelement.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102404.347632.patch
Type: text/x-patch
Size: 9567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210525/ebe92d60/attachment.bin>


More information about the llvm-commits mailing list