[PATCH] D113035: [InstCombine] enhance vector bitwise select matching

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 9 05:03:55 PST 2021


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

Patch updated:
Use general VectorType APIs to make the transform safe for scalable vectors. It is not possible to write a test for this currently -- and surrounding code would likely crash -- but this should work with matchers (m_Not) that are made more flexible in the future.


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

https://reviews.llvm.org/D113035

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/test/Transforms/InstCombine/logical-select.ll
  llvm/test/Transforms/PhaseOrdering/X86/vector-math.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113035.385782.patch
Type: text/x-patch
Size: 9833 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211109/b6491865/attachment.bin>


More information about the llvm-commits mailing list