diff options
author | Amir Aupov <amir.aupov@gmail.com> | 2023-02-09 10:52:51 -0800 |
---|---|---|
committer | Amir Ayupov <aaupov@fb.com> | 2023-02-09 10:53:11 -0800 |
commit | 782045e727b70d19c7fa70c388eddb65390060d9 (patch) | |
tree | b40db883bb4004e0d0f43ab39ae26c29d27f9488 /llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp | |
parent | bd11b2bdf37490c2a3a3998be8d2f9499996b396 (diff) | |
download | llvm-782045e727b70d19c7fa70c388eddb65390060d9.zip llvm-782045e727b70d19c7fa70c388eddb65390060d9.tar.gz llvm-782045e727b70d19c7fa70c388eddb65390060d9.tar.bz2 |
Revert "HHVM calling conventions."
This reverts commit cce239c45d6ef3865a017b5b3f935964e0348734.
HHVM calling conventions are unused. Remove them by partially reverting the commit.
Reviewed By: MaskRay, MatzeB
Differential Revision: https://reviews.llvm.org/D124330
Diffstat (limited to 'llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp b/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp index 9430e86..48a2094 100644 --- a/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp +++ b/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp @@ -17,7 +17,6 @@ #include "llvm/CodeGen/TargetFrameLowering.h" #include "llvm/CodeGen/TargetSubtargetInfo.h" #include "llvm/IR/Attributes.h" -#include "llvm/IR/CallingConv.h" #include "llvm/IR/Function.h" #include "llvm/IR/InstrTypes.h" #include "llvm/MC/MCAsmInfo.h" @@ -131,16 +130,6 @@ void TargetFrameLowering::determineCalleeSaves(MachineFunction &MF, } } -unsigned TargetFrameLowering::getStackAlignmentSkew( - const MachineFunction &MF) const { - // When HHVM function is called, the stack is skewed as the return address - // is removed from the stack before we enter the function. - if (LLVM_UNLIKELY(MF.getFunction().getCallingConv() == CallingConv::HHVM)) - return MF.getTarget().getAllocaPointerSize(); - - return 0; -} - bool TargetFrameLowering::allocateScavengingFrameIndexesNearIncomingSP( const MachineFunction &MF) const { if (!hasFP(MF)) |