[llvm] [InstCombine] Fold `(x == y) ? 0 : (x > y ? 1 : -1)` into `ucmp/scmp(x,y)` (PR #107314)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 13 20:16:17 PDT 2024
dtcxzyw wrote:
See https://github.com/dtcxzyw/llvm-opt-benchmark/pull/1307/files#r1759649980. Can we remove the one-use check? Or just use `InVal->hasOneUser()` instead.
https://github.com/llvm/llvm-project/pull/107314
More information about the llvm-commits
mailing list