summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-06-18 05:15:53 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-06-18 05:15:53 +0000
commite935f05a94dae95e5d86606bd2b65cb92bf302aa (patch)
tree7956c83a9efeb0ec380ed061bc1a7aeeb87b86cb /llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
parente8fd9561cb16d9d8398276e8c4ca836199b7699c (diff)
downloadbcm5719-llvm-e935f05a94dae95e5d86606bd2b65cb92bf302aa.tar.gz
bcm5719-llvm-e935f05a94dae95e5d86606bd2b65cb92bf302aa.zip
AMDGPU: Fix kernel argument alignment impacting stack size
Don't use AllocateStack because kernel arguments have nothing to do with the stack. The ensureMaxAlignment call was still changing the stack alignment. llvm-svn: 273080
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
index c824ab83ad8..d19eb655e46 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
@@ -1,8 +1,5 @@
#include "AMDGPUMachineFunction.h"
-#include "AMDGPU.h"
-#include "Utils/AMDGPUBaseInfo.h"
-#include "llvm/IR/Attributes.h"
-#include "llvm/IR/Function.h"
+
using namespace llvm;
// Pin the vtable to this file.
@@ -10,8 +7,9 @@ void AMDGPUMachineFunction::anchor() {}
AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
MachineFunctionInfo(),
+ KernArgSize(0),
+ MaxKernArgAlign(0),
LDSSize(0),
ABIArgOffset(0),
ScratchSize(0),
- IsKernel(true) {
-}
+ IsKernel(true) {}
OpenPOWER on IntegriCloud