[all-commits] [llvm/llvm-project] ca541a: [WebAssembly] Fix up out-of-range BUILD_VECTOR lan...

Thomas Lively via All-commits all-commits at lists.llvm.org
Tue Aug 24 17:24:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca541aa319cd927c117235053712a808886828f0
      https://github.com/llvm/llvm-project/commit/ca541aa319cd927c117235053712a808886828f0
  Author: Thomas Lively <tlively at google.com>
  Date:   2021-08-24 (Tue, 24 Aug 2021)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
    A llvm/test/CodeGen/WebAssembly/simd-pr51605.ll

  Log Message:
  -----------
  [WebAssembly] Fix up out-of-range BUILD_VECTOR lane constants

Fixes PR51605 in which a DAG combine and legalization sequence generated
out-of-range constants in BUILD_VECTOR lanes. In the v16i8 case, the constants
were 255, which would be in range if DAG ISel used unsigned constants, but it is
out of range because DAG ISel uses signed constants.

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




More information about the All-commits mailing list