[all-commits] [llvm/llvm-project] 5c7297: [WebAssembly] Remove saturating fp-to-int target i...

Thomas Lively via All-commits all-commits at lists.llvm.org
Fri Apr 16 12:11:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c729750a6d75df4eeb3eaad72e0b4e93ea27c0e
      https://github.com/llvm/llvm-project/commit/5c729750a6d75df4eeb3eaad72e0b4e93ea27c0e
  Author: Thomas Lively <tlively at google.com>
  Date:   2021-04-16 (Fri, 16 Apr 2021)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/builtins-wasm.c
    M llvm/include/llvm/IR/IntrinsicsWebAssembly.td
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyISD.def
    M llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h
    M llvm/lib/Target/WebAssembly/WebAssemblyInstrConv.td
    M llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
    M llvm/test/CodeGen/WebAssembly/conv.ll
    M llvm/test/CodeGen/WebAssembly/simd-intrinsics.ll
    R llvm/test/Transforms/InstSimplify/ConstProp/WebAssembly/trunc_saturate.ll

  Log Message:
  -----------
  [WebAssembly] Remove saturating fp-to-int target intrinsics

Use the target-independent @llvm.fptosi and @llvm.fptoui intrinsics instead.
This includes removing the instrinsics for i32x4.trunc_sat_zero_f64x2_{s,u},
which are now represented in IR as a saturating truncation to a v2i32 followed by
a concatenation with a zero vector.

Differential Revision: https://reviews.llvm.org/D100596




More information about the All-commits mailing list