[PATCH] D141773: [InstCombine] Generalize (icmp sgt (1 << Y), -1) -> (icmp ne Y, BitWidth-1) to any negative constant.
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 15 04:55:36 PST 2023
lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.
https://alive2.llvm.org/ce/z/ynf5JE
LG, thank you.
I suspect, there should be a generalization for non-negative constants, too.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141773/new/
https://reviews.llvm.org/D141773
More information about the llvm-commits
mailing list