[all-commits] [llvm/llvm-project] 3448e9: [AArch64][GlobalISel] Fix lowering of i64->f32 ito...

David Green via All-commits all-commits at lists.llvm.org
Sat Jul 5 10:13:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3448e9c075aa27e6d4fdc1626bbf6291a0892614
      https://github.com/llvm/llvm-project/commit/3448e9c075aa27e6d4fdc1626bbf6291a0892614
  Author: David Green <david.green at arm.com>
  Date:   2025-07-05 (Sat, 05 Jul 2025)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
    M llvm/test/CodeGen/AArch64/itofp.ll

  Log Message:
  -----------
  [AArch64][GlobalISel] Fix lowering of i64->f32 itofp. (#132703)

This is a GISel equivalent of #130665, preventing a double-rounding
issue in sitofp/uitofp by scalarizing i64->f32 converts. Most of the
changes are made in the ActionDefinitionsBuilder for G_SITOFP/G_UITOFP.
Because it is legal to convert i64->f16 itofp without double-rounding,
but not a fpround f64->f16, that variant is lowered to build the two
extends.



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