[PATCH] D85463: [GlobalISel] Add combine for (x & mask) -> x when (x & mask) == x
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 12:46:27 PDT 2020
paquette added a comment.
I didn't port this directly from the DAGCombiner, I originally wrote it just to handle the G_ICMP + G_AND pattern, which appears fairly often in AArch64.
But then I noticed the DAGCombiner does this:
// fold (and x, -1) -> x
and decided to try to generalize it.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85463/new/
https://reviews.llvm.org/D85463
More information about the llvm-commits
mailing list