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

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 24 05:53:30 PDT 2021


david-arm updated this revision to Diff 347360.
david-arm added a comment.

- Generalised the optimisation to more than 2 GEP operands with the requirement that only one operand should be a vector.
- Tidied up the tests.


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
  llvm/test/Transforms/InstCombine/vec_gep_scalar_arg-inseltpoison.ll
  llvm/test/Transforms/InstCombine/vec_gep_scalar_arg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101900.347360.patch
Type: text/x-patch
Size: 18420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210524/c0afaa57/attachment.bin>


More information about the llvm-commits mailing list