[PATCH] D126617: [InstCombine] Optimize shl+lshr+and conversion pattern

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 19:34:47 PDT 2022


bcl5980 updated this revision to Diff 435028.
bcl5980 edited the summary of this revision.
bcl5980 added a comment.

1. Use m_Power2 to match C1 <https://reviews.llvm.org/C1>
2. Remove condition Log2(C1 <https://reviews.llvm.org/C1>) < Log2(C3)+C2
3. Add one more test case when C2 <  Log2(C1 <https://reviews.llvm.org/C1>) < Log2(C3)+C2


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

https://reviews.llvm.org/D126617

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/test/Transforms/InstCombine/and.ll
  llvm/test/Transforms/InstCombine/icmp-and-shift.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126617.435028.patch
Type: text/x-patch
Size: 5111 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220608/3871b273/attachment.bin>


More information about the llvm-commits mailing list