[PATCH] D122152: [InstCombine] Fold two select patterns into and-or

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 23 00:54:00 PDT 2022


bcl5980 updated this revision to Diff 417518.
bcl5980 added a comment.

Thanks for spatel's suggestion, use m_Specific to match existing value and add 2 neg tests.
Thanks for nikic's suggestion, use m_c_And/m_c_Or


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

https://reviews.llvm.org/D122152

Files:
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/test/Transforms/InstCombine/select-and-or.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122152.417518.patch
Type: text/x-patch
Size: 5685 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220323/39b006b6/attachment.bin>


More information about the llvm-commits mailing list