[PATCH] D101900: [InstCombine] Fold extractelement + vector GEP with one use

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 7 06:05:02 PDT 2021


david-arm updated this revision to Diff 343661.
david-arm edited the summary of this revision.
david-arm added a comment.

- Tried to improve the commit message to explain why I've chosed to unconditionall apply the fold for all cases, not just splats.
- Added extra negative test for GEPs with vector of ptrs + vector of indices.
- Changed code to assume GEP result is always a VectorType.


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

https://reviews.llvm.org/D101900

Files:
  llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  llvm/test/Transforms/InstCombine/gep-vector-indices.ll
  llvm/test/Transforms/InstCombine/vec_demanded_elts-inseltpoison.ll
  llvm/test/Transforms/InstCombine/vec_demanded_elts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101900.343661.patch
Type: text/x-patch
Size: 14812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210507/2f59bb2d/attachment.bin>


More information about the llvm-commits mailing list