[all-commits] [llvm/llvm-project] 8a43d4: [WebAssembly] Fix bug in custom shuffle combine

Thomas Lively via All-commits all-commits at lists.llvm.org
Tue May 19 12:54:34 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a43d41a407095c820a5c4909a6865a88e34f29c
      https://github.com/llvm/llvm-project/commit/8a43d41a407095c820a5c4909a6865a88e34f29c
  Author: Thomas Lively <tlively at google.com>
  Date:   2020-05-19 (Tue, 19 May 2020)

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

  Log Message:
  -----------
  [WebAssembly] Fix bug in custom shuffle combine

Summary:
The code previously assumed the source of the bitcast in the combined
pattern was a vector type, but this is not always true. This patch
adds a check to avoid an assertion failure in that case.

Reviewers: aheejin

Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list