[all-commits] [llvm/llvm-project] 0c7495: [WebAssembly] Fix call_indirect on funcrefs
Paulo Matos via All-commits
all-commits at lists.llvm.org
Wed Oct 6 01:25:52 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0c7495848a02e1bcc68527c77c2a060ffae408c1
https://github.com/llvm/llvm-project/commit/0c7495848a02e1bcc68527c77c2a060ffae408c1
Author: Paulo Matos <pmatos at igalia.com>
Date: 2021-10-06 (Wed, 06 Oct 2021)
Changed paths:
M llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
M llvm/test/CodeGen/WebAssembly/funcref-call.ll
Log Message:
-----------
[WebAssembly] Fix call_indirect on funcrefs
The currently implementation of funcrefs is broken since it is putting
the funcref itself on the stack before the call_indirect. Instead what
should be on the stack is the constant 0, which is the index at which
we store the funcref in __funcref_call_table.
Reviewed By: tlively
Differential Revision: https://reviews.llvm.org/D111152
More information about the All-commits
mailing list