[PATCH] D36498: [InstCombine] Teach foldSelectICmpAnd to recognize a (icmp slt trunc X, 0) and (icmp sgt trunc X, -1) as equivalent to an and with the sign bit of the truncated type

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 18 15:26:29 PDT 2017


craig.topper added a comment.

@spatel is this ok now? I'd like to work on replacing the foldSelectICmpAndOr implementation using this.


https://reviews.llvm.org/D36498





More information about the llvm-commits mailing list