[PATCH] D119369: [InstCombine] reduce mul operands based on undemanded high bits

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 13:45:21 PST 2022


spatel added a comment.

In D119369#3308910 <https://reviews.llvm.org/D119369#3308910>, @lebedev.ri wrote:

> LGTM, thank you.

Thanks!

> The same is true for `and`/`or`/`xor`.

Yes - those are more general, Any undemanded bit (not just high bits) in the result is also undemanded in the operands. Those appear to be handled optimally already.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119369/new/

https://reviews.llvm.org/D119369



More information about the llvm-commits mailing list