summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-10-11 16:10:53 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-10-11 16:10:53 +0000
commitffc9dd5c0dbb7a35516da88305bb8483af383c16 (patch)
tree9e2b5caaa14eb37beb449346987e3c65ab98cbed /llvm/lib/CodeGen/MachineFunction.cpp
parentb52220cd21c88ee8d8b3fc2ced4f3982294c37f8 (diff)
downloadbcm5719-llvm-ffc9dd5c0dbb7a35516da88305bb8483af383c16.tar.gz
bcm5719-llvm-ffc9dd5c0dbb7a35516da88305bb8483af383c16.zip
Don't pad variables in stack slots for performance!
llvm-svn: 4115
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index e0b6ac63bb7..e809e31a62e 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -85,7 +85,7 @@ ComputeMaxOptionalArgsSize(const TargetMachine& target, const Function *F,
"compute MaxOptionalArgsSize");
sizeForThisCall = 0;
for (unsigned i = 0; i < numOperands; ++i)
- sizeForThisCall += target.findOptimalStorageSize(callInst->
+ sizeForThisCall += target.DataLayout.getTypeSize(callInst->
getOperand(i)->getType());
}
@@ -190,7 +190,7 @@ MachineCodeForMethod::allocateSpilledValue(const TargetMachine& target,
"Size of reg spills area has been used to compute an offset so "
"no more register spill slots should be allocated!");
- unsigned int size = target.findOptimalStorageSize(type);
+ unsigned int size = target.DataLayout.getTypeSize(type);
unsigned char align = target.DataLayout.getTypeAlignment(type);
bool growUp;
OpenPOWER on IntegriCloud