[llvm-branch-commits] [llvm] release/22.x: [SelectionDAG] Fix fptoui.sat expansion using minnum/maxnum (#180178) (PR #184565)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Mar 22 18:40:42 PDT 2026
wangleiat wrote:
> Are you saying that only incorrect code generation will hit this bug, or that it causes incorrect code generation?
It causes incorrect code generation.
> This does not seem to have been a big problem since it was not noticed until now.
It went unnoticed because other targets don’t seem to hit the problematic code path. On LoongArch, however, once FMINNUM/FMAXNUM are marked as legal, the lowering ends up taking that path, which exposes the bug.
https://github.com/llvm/llvm-project/pull/184565
More information about the llvm-branch-commits
mailing list