[llvm-commits] CVS: llvm/lib/CodeGen/InstrSelection/MachineCodeForFunction.cpp
Vikram Adve
vadve at cs.uiuc.edu
Fri Oct 11 11:12:01 PDT 2002
Changes in directory llvm/lib/CodeGen/InstrSelection:
MachineCodeForFunction.cpp updated: 1.15 -> 1.16
---
Log message:
Don't pad variables in stack slots for performance!
---
Diffs of the changes:
Index: llvm/lib/CodeGen/InstrSelection/MachineCodeForFunction.cpp
diff -u llvm/lib/CodeGen/InstrSelection/MachineCodeForFunction.cpp:1.15 llvm/lib/CodeGen/InstrSelection/MachineCodeForFunction.cpp:1.16
--- llvm/lib/CodeGen/InstrSelection/MachineCodeForFunction.cpp:1.15 Mon Sep 16 10:18:16 2002
+++ llvm/lib/CodeGen/InstrSelection/MachineCodeForFunction.cpp Fri Oct 11 11:10:53 2002
@@ -85,7 +85,7 @@
"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 @@
"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;
More information about the llvm-commits
mailing list