[PATCH] D144760: [InstCombine] use demanded vector elements to eliminate partially redundant instructions

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 26 07:27:18 PST 2023


spatel updated this revision to Diff 500580.
spatel marked an inline comment as done.
spatel added a comment.

Patch updated:

1. Use lambda and m_c_Binop to reduce code duplication (I tried a few variations of juggling the conditions - this was the best I could find).
2. Added a pair of negative tests with mismatched demand/shuffle mask.


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

https://reviews.llvm.org/D144760

Files:
  llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  llvm/test/Transforms/InstCombine/vec_demanded_elts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144760.500580.patch
Type: text/x-patch
Size: 11772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230226/d71d3089/attachment.bin>


More information about the llvm-commits mailing list