[all-commits] [llvm/llvm-project] 2a4a22: [WebAssembly] Custom optimization for truncate

jing-bao via All-commits all-commits at lists.llvm.org
Tue Dec 14 08:42:53 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a4a229d6dcceecbb8bab094b6880e2445a6e465
      https://github.com/llvm/llvm-project/commit/2a4a229d6dcceecbb8bab094b6880e2445a6e465
  Author: Jing Bao <jing.bao at intel.com>
  Date:   2021-12-14 (Tue, 14 Dec 2021)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyISD.def
    M llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
    M llvm/test/CodeGen/WebAssembly/fpclamptosat_vec.ll

  Log Message:
  -----------
  [WebAssembly] Custom optimization for truncate

When possible, optimize TRUNCATE to generate Wasm SIMD narrow
instructions (i16x8.narrow_i32x4_u, i8x16.narrow_i16x8_u), rather than generate
lots of extract_lane and replace_lane.

Closes #50350.




More information about the All-commits mailing list