[PATCH] D122891: [X86] Fold AND(SRL(X,Y),1) -> SETCC(BT(X,Y))
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 3 01:47:29 PDT 2022
RKSimon added a comment.
In D122891#3424712 <https://reviews.llvm.org/D122891#3424712>, @lebedev.ri wrote:
> What about the case where we want to have the inverse of the bit, https://godbolt.org/z/sEjq9n9Kn
> I would presume we can consume any such `not` by inverting the predicate (`b`<->`nb`).
np - we already do something like that in some of the other X86ISD::BT lowering cases - I'll take a look next week
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122891/new/
https://reviews.llvm.org/D122891
More information about the llvm-commits
mailing list