[all-commits] [llvm/llvm-project] 761be7: [WebAssembly] recognize saturating truncation (#15...

Folkert de Vries via All-commits all-commits at lists.llvm.org
Wed Oct 8 11:52:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 761be78dd73436dfa66090ba921ca8154cc42209
      https://github.com/llvm/llvm-project/commit/761be78dd73436dfa66090ba921ca8154cc42209
  Author: Folkert de Vries <folkert at folkertdev.nl>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
    M llvm/test/CodeGen/WebAssembly/fpclamptosat_vec.ll
    A llvm/test/CodeGen/WebAssembly/saturating-truncation.ll

  Log Message:
  -----------
  [WebAssembly] recognize saturating truncation (#155470)

fixes https://github.com/llvm/llvm-project/issues/153838
using the same approach as
https://github.com/llvm/llvm-project/pull/155377

Recognize a manual saturating truncation and select the corresponding
instruction. This is useful in general, but came up specifically in
https://github.com/rust-lang/stdarch because it will allow us to drop
more target-specific intrinsics in favor of cross-platform ones.



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