[llvm] [InstCombine] Fold `(add X, (sext/zext (icmp eq X, C)))` (PR #93840)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 11:12:39 PDT 2024


goldsteinn wrote:

> The IR diff LGTM. And there is no extra space for us to generalize this pattern (e.g., add->sub, eq -> ne) :)

What do you mean there is no extra space for us the generalize?

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


More information about the llvm-commits mailing list