[WebAssembly] Fix epilogue insertion for indirect tail calls
authorThomas Lively <tlively@google.com>
Wed, 22 Mar 2023 16:28:47 +0000 (09:28 -0700)
committerThomas Lively <tlively@google.com>
Wed, 22 Mar 2023 16:28:48 +0000 (09:28 -0700)
commitdd0bbae5efa4d23322eda905b2f9e11dfd3c5d36
tree56e17e8397bcb44baf6d670610dc3588a187464e
parentd868135691bb0d5c924b8fd2ae26171fbf5d1387
[WebAssembly] Fix epilogue insertion for indirect tail calls

Previously epilogues were incorrectly inserted after indirect tail calls because
they did not have the `isTerminator` property. Add that property and test that
they get correct epilogues. To be safe, also add other properties that were
defined for direct tail calls.

Differential Revision: https://reviews.llvm.org/D146569
llvm/lib/Target/WebAssembly/WebAssemblyInstrCall.td
llvm/test/CodeGen/WebAssembly/tailcall.ll