[PATCH] D79452: [VectorCombine] scalarize binop of inserted elements into vector constants

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 7 07:54:18 PDT 2020


spatel updated this revision to Diff 262652.
spatel retitled this revision from "[VectorCombine] scalarize binop of inserted elements into undef" to "[VectorCombine] scalarize binop of inserted elements into vector constants".
spatel added a comment.

Patch updated:

1. Loosen pattern matching to allow any vector constant rather than just undef.
2. Use constant folding to generate the new base vector for insertion.
3. Add tests/comments.
4. Add TODO code comments for potential enhancements.


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

https://reviews.llvm.org/D79452

Files:
  llvm/lib/Transforms/Vectorize/VectorCombine.cpp
  llvm/test/Transforms/VectorCombine/X86/insert-binop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79452.262652.patch
Type: text/x-patch
Size: 8251 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200507/678ac674/attachment.bin>


More information about the llvm-commits mailing list