[llvm] [llvm][InstCombine] Fold signum(x) into scmp(x, 0) (PR #143445)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 10 11:16:49 PDT 2025


topperc wrote:

> Irrelevant to this PR in itself, but I did notice when running both src in tgt in llc, but why does llc lower the src in the alive2 posted better than the intrinsic?

I'm guessing you mean on X86. It looks neutral on RISC-V and scmp looks better for AArch64.

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


More information about the llvm-commits mailing list