[PATCH] D34763: [InstCombine] look through bswaps for equality comparisons

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 28 10:27:23 PDT 2017


RKSimon added a comment.

You should be able to do the same for bitreverse as well.

Worth handling the the cmp( bswap(x), constant ) -> cmp( x, bswap(constant) ) case as well?


https://reviews.llvm.org/D34763





More information about the llvm-commits mailing list