mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Don't pad variables in stack slots for performance!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4115 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -85,7 +85,7 @@ ComputeMaxOptionalArgsSize(const TargetMachine& target, const Function *F,
|
|||||||
"compute MaxOptionalArgsSize");
|
"compute MaxOptionalArgsSize");
|
||||||
sizeForThisCall = 0;
|
sizeForThisCall = 0;
|
||||||
for (unsigned i = 0; i < numOperands; ++i)
|
for (unsigned i = 0; i < numOperands; ++i)
|
||||||
sizeForThisCall += target.findOptimalStorageSize(callInst->
|
sizeForThisCall += target.DataLayout.getTypeSize(callInst->
|
||||||
getOperand(i)->getType());
|
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 "
|
"Size of reg spills area has been used to compute an offset so "
|
||||||
"no more register spill slots should be allocated!");
|
"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);
|
unsigned char align = target.DataLayout.getTypeAlignment(type);
|
||||||
|
|
||||||
bool growUp;
|
bool growUp;
|
||||||
|
Reference in New Issue
Block a user