From 972fc3588bdb52724c8c8b3b2125a95e9cd2e299 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Wed, 22 Aug 2018 21:13:49 +0000 Subject: [WebAssembly] Don't write SP back when prolog is generated only for EH Summary: When we don't actually have stack-allocated variables but need SP only to support EH, we don't need to write SP back in the epilog, because we don't bump down the stack pointer. Reviewers: dschuff Subscribers: jgravelle-google, sbc100, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D51114 llvm-svn: 340454 --- llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h') diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h index ac25b7b37fd..03a6b7c3ad1 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h @@ -56,6 +56,7 @@ class WebAssemblyFrameLowering final : public TargetFrameLowering { private: bool hasBP(const MachineFunction &MF) const; + bool needsSPForLocalFrame(const MachineFunction &MF) const; bool needsSP(const MachineFunction &MF) const; bool needsSPWriteback(const MachineFunction &MF) const; }; -- cgit v1.2.3