[PATCH] D155622: [X86] Recognize standalone `(1 << nbits) - 1` pattern as bzhi
Danila Malyutin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 18 09:54:15 PDT 2023
danilaml created this revision.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
danilaml requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This can be though as a subcase of `x & ((1 << nbits) - 1)` where x == -1
#Reviewers:
#Subscribers:
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D155622
Files:
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
llvm/test/CodeGen/X86/extract-bits.ll
llvm/test/CodeGen/X86/extract-lowbits.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155622.541611.patch
Type: text/x-patch
Size: 20163 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230718/fb429a32/attachment.bin>
More information about the llvm-commits
mailing list