summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyInstrCall.td
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2018-10-11 18:45:48 +0000
committerThomas Lively <tlively@google.com>2018-10-11 18:45:48 +0000
commitab37189f7eb05e427170f60902d1964cf9ee4c95 (patch)
treead7000a1c824994a10567dd99e9a4f52986266de /llvm/lib/Target/WebAssembly/WebAssemblyInstrCall.td
parente8a6c3eb9628e9833ae41196dc52a5c47041e3e6 (diff)
downloadbcm5719-llvm-ab37189f7eb05e427170f60902d1964cf9ee4c95.tar.gz
bcm5719-llvm-ab37189f7eb05e427170f60902d1964cf9ee4c95.zip
[WebAssembly] Revert rL344180, which was breaking expensive checks
llvm-svn: 344280
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyInstrCall.td')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrCall.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrCall.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrCall.td
index 07839b79011..3c9caa3f0de 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrCall.td
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrCall.td
@@ -15,6 +15,8 @@
// TODO: addr64: These currently assume the callee address is 32-bit.
// FIXME: add $type to first call_indirect asmstr (and maybe $flags)
+let Defs = [ARGUMENTS] in {
+
// Call sequence markers. These have an immediate which represents the amount of
// stack space to allocate or free, which is used for varargs lowering.
let Uses = [SP32, SP64], Defs = [SP32, SP64], isCodeGenOnly = 1 in {
@@ -116,6 +118,8 @@ let Uses = [SP32, SP64], isCall = 1 in {
0x11>;
} // Uses = [SP32,SP64], isCall = 1
+} // Defs = [ARGUMENTS]
+
// Patterns for matching a direct call to a global address.
def : Pat<(i32 (WebAssemblycall1 (WebAssemblywrapper tglobaladdr:$callee))),
(CALL_I32 tglobaladdr:$callee)>;
OpenPOWER on IntegriCloud