[llvm] [InstCombine] Fold `(x == y) ? 0 : (x > y ? 1 : -1)` into `ucmp/scmp(x,y)` (PR #107314)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 16:11:45 PDT 2024


goldsteinn wrote:

By inverse fold for you mean `x !- y ? x > y ? 1 : -1 : 0` or `x > y ? 1 : x == y ? 0 : -1`?

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


More information about the llvm-commits mailing list