[all-commits] [llvm/llvm-project] 0e3748: [WebAssembly] Fix selection of global calls

Heejin Ahn via All-commits all-commits at lists.llvm.org
Wed Apr 5 01:43:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e37487df8e030b9e468166fa3d088678bf7d0a1
      https://github.com/llvm/llvm-project/commit/0e37487df8e030b9e468166fa3d088678bf7d0a1
  Author: Heejin Ahn <aheejin at gmail.com>
  Date:   2023-04-05 (Wed, 05 Apr 2023)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
    M llvm/test/CodeGen/WebAssembly/call.ll

  Log Message:
  -----------
  [WebAssembly] Fix selection of global calls

When selecting calls, currently we unconditionally remove `Wrapper`s of
the call target. But we are supposed to do that only when the target is
a function, an external symbol (= library function), or an alias of a
function. Otherwise we end up directly calling globals that are not
functions.

Fixes https://github.com/llvm/llvm-project/issues/60003.

Reviewed By: tlively, HerrCai0907

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




More information about the All-commits mailing list