summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2018-08-22 21:13:49 +0000
committerHeejin Ahn <aheejin@gmail.com>2018-08-22 21:13:49 +0000
commit972fc3588bdb52724c8c8b3b2125a95e9cd2e299 (patch)
treeb7cac11780407755328a47cd502155c2b4d82a3d /llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h
parent6b6d2e010593e499b24048188e91c993c6692407 (diff)
downloadbcm5719-llvm-972fc3588bdb52724c8c8b3b2125a95e9cd2e299.tar.gz
bcm5719-llvm-972fc3588bdb52724c8c8b3b2125a95e9cd2e299.zip
[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
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h1
1 files changed, 1 insertions, 0 deletions
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;
};
OpenPOWER on IntegriCloud