[all-commits] [llvm/llvm-project] 6dcece: [GlobalISel][AArch64] Fix fptoi.sat lowering. (#12...

David Green via All-commits all-commits at lists.llvm.org
Thu Feb 20 13:09:38 PST 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 6dcece41472d64555f0ca2539a3e1e1e5feec083
      https://github.com/llvm/llvm-project/commit/6dcece41472d64555f0ca2539a3e1e1e5feec083
  Author: David Green <david.green at arm.com>
  Date:   2025-02-20 (Thu, 20 Feb 2025)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/test/CodeGen/AArch64/fptosi-sat-scalar.ll
    M llvm/test/CodeGen/AArch64/fptosi-sat-vector.ll
    M llvm/test/CodeGen/AArch64/fptoui-sat-scalar.ll
    M llvm/test/CodeGen/AArch64/fptoui-sat-vector.ll

  Log Message:
  -----------
  [GlobalISel][AArch64] Fix fptoi.sat lowering. (#127901)

The SDAG version uses fminnum/fmaxnum, in converting it to fcmp+select
it appears the order of the operands was chosen badly. This switches the
conditions used to keep the constant on the RHS.

(cherry picked from commit 70ed381b1693697dec3efcaed161d3626d16cff1)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list