[all-commits] [llvm/llvm-project] 7ee758: [WebAssembly] MC: Fix for data aliases with offset...

Sam Clegg via All-commits all-commits at lists.llvm.org
Wed Jun 17 16:26:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ee758d691b2afc2f130ba3a8f8507fb6415f1d9
      https://github.com/llvm/llvm-project/commit/7ee758d691b2afc2f130ba3a8f8507fb6415f1d9
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2020-06-17 (Wed, 17 Jun 2020)

  Changed paths:
    M llvm/lib/MC/WasmObjectWriter.cpp
    A llvm/test/CodeGen/WebAssembly/aliases.ll
    A llvm/test/MC/WebAssembly/alias.s
    A llvm/test/MC/WebAssembly/offset.s

  Log Message:
  -----------
  [WebAssembly] MC: Fix for data aliases with offsets (getelementptr)

For some reason we hadn't seen such cases in the wild which makes
me think that clang and rustc don't generate these.  In the bug which
reproduces it only occurs with LTO so my guess is that some LTO pass
is creating this alias + gep.

See: https://github.com/emscripten-core/emscripten/issues/8731

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




More information about the All-commits mailing list