[llvm] [InstCombine] Fold square into comparison with constant (PR #196480)
Max Graey via llvm-commits
llvm-commits at lists.llvm.org
Fri May 8 21:18:34 PDT 2026
MaxGraey wrote:
> x * x == 9 -> abs(x) == 3
I don't think I would be profitable:
https://godbolt.org/z/jncK4Eb1v
https://github.com/llvm/llvm-project/pull/196480
More information about the llvm-commits
mailing list