[llvm] [InstCombine] Optimize 'xor-and/or-select' sequence to 'or' for bool (PR #66394)

Qi Hu via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 11:08:33 PDT 2023


Qi-Hu wrote:

> Hasn't this already been implemented in https://reviews.llvm.org/D158983?
> 
> Please split test additions into a separate commit so the actual impact of the change can be seen. If the only benefit of the additional transform is replacing a logical or with a bitwise or, then I don't think this is needed.

Indeed, this is already implemented in [D158983](https://reviews.llvm.org/D158983). Thanks for pointing it out. I'll close this PR.

https://github.com/llvm/llvm-project/pull/66394


More information about the llvm-commits mailing list