[all-commits] [llvm/llvm-project] 89333b: [WebAssembly] Set alignment to 1 for SIMD memory i...

Thomas Lively via All-commits all-commits at lists.llvm.org
Wed May 5 11:59:56 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89333b35a7a909d29ae53fddcfb4792d87223b96
      https://github.com/llvm/llvm-project/commit/89333b35a7a909d29ae53fddcfb4792d87223b96
  Author: Thomas Lively <tlively at google.com>
  Date:   2021-05-05 (Wed, 05 May 2021)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
    M llvm/test/CodeGen/WebAssembly/simd-load-lane-offset.ll
    M llvm/test/CodeGen/WebAssembly/simd-load-zero-offset.ll

  Log Message:
  -----------
  [WebAssembly] Set alignment to 1 for SIMD memory intrinsics

The WebAssembly SIMD intrinsics in wasm_simd128.h generally try not to require
any particular alignment for memory operations to be maximally flexible. For
builtin memory access functions and their corresponding LLVM IR intrinsics,
there's no way to set the expected alignment, so the best we can do is set the
alignment to 1 in the backend. This change means that the alignment hints in the
emitted code will no longer be incorrect when users use the intrinsics to access
unaligned data.

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




More information about the All-commits mailing list