[PATCH] D42951: [CGP] Strength reduce cmp (xor (a, -1), xor(b, -1)) => cmp (b, a)

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 7 02:39:39 PST 2018


dmgreen added a comment.

> We could increase register pressure if we zero-extend the operands to the compare, then don't reuse the zero-extended compare operands to produce the result.

Yeah, bang on. Looks like both the cmp's are uxtb'd, where as the selects are not.

Back to the drawing board with this one I guess.


https://reviews.llvm.org/D42951





More information about the llvm-commits mailing list