[all-commits] [llvm/llvm-project] 3dd75f: [WebAssembly] Scalarize extract_vector_elt of binops

Thomas Lively via All-commits all-commits at lists.llvm.org
Thu Jul 8 14:32:08 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3dd75f53710683fe3616eb64a2c1865ade43b3f7
      https://github.com/llvm/llvm-project/commit/3dd75f53710683fe3616eb64a2c1865ade43b3f7
  Author: Thomas Lively <tlively at google.com>
  Date:   2021-07-08 (Thu, 08 Jul 2021)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h
    M llvm/test/CodeGen/WebAssembly/masked-shifts.ll

  Log Message:
  -----------
  [WebAssembly] Scalarize extract_vector_elt of binops

Override the `shouldScalarizeBinop` target lowering hook using the same
implementation used in the x86 backend. This causes `extract_vector_elt`s of
vector binary ops to be scalarized if the scalarized version would be supported.

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




More information about the All-commits mailing list