[PATCH] D74495: [VectorCombine] try to form vector binop to eliminate an extract element

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 12 11:10:32 PST 2020


spatel updated this revision to Diff 244225.
spatel added a comment.

Patch updated:

1. Loosened use check to deal with extract of same operand (I misunderstood the comment/example about X+X in the previous reply).
2. Added tests with extra uses.


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

https://reviews.llvm.org/D74495

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74495.244225.patch
Type: text/x-patch
Size: 10394 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200212/4d95d8ea/attachment.bin>


More information about the llvm-commits mailing list