[PATCH] D117983: [DAG] Fold (X & Y) != 0 --> zextOrTrunc(X & Y) iff everything but LSB is known zero (PR51312)
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 23 06:41:24 PST 2022
lebedev.ri added a comment.
I think you are missing
if (TLI.getBooleanContents(VT) == TargetLowering::UndefinedBooleanContent ||
TLI.getBooleanContents(VT) == TargetLowering::ZeroOrOneBooleanContent)
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