[PATCH] D117983: [DAG] Fold (X & Y) != 0 --> zextOrTrunc(X & Y) iff everything but LSB is known zero (PR51312)
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 23 07:05:25 PST 2022
RKSimon added a comment.
In D117983#3264453 <https://reviews.llvm.org/D117983#3264453>, @lebedev.ri wrote:
> I think you are missing
>
> if (TLI.getBooleanContents(VT) == TargetLowering::UndefinedBooleanContent ||
> TLI.getBooleanContents(VT) == TargetLowering::ZeroOrOneBooleanContent)
>
Nice catch!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117983/new/
https://reviews.llvm.org/D117983
More information about the llvm-commits
mailing list