Use 2-byte alignment for functions. 4 bytes are clear overkill here.
authorAnton Korobeynikov <asl@math.spbu.ru>
Sun, 22 Nov 2009 01:13:39 +0000 (01:13 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sun, 22 Nov 2009 01:13:39 +0000 (01:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89572 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MSP430/MSP430ISelLowering.cpp

index 5a925f5eb3e43db4de7051cf91639706edc1f0fa..adc6d58961ee378ea6f9fefdc9534173b39fcdf4 100644 (file)
@@ -162,7 +162,7 @@ SDValue MSP430TargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) {
 
 /// getFunctionAlignment - Return the Log2 alignment of this function.
 unsigned MSP430TargetLowering::getFunctionAlignment(const Function *F) const {
-  return F->hasFnAttr(Attribute::OptimizeForSize) ? 1 : 4;
+  return F->hasFnAttr(Attribute::OptimizeForSize) ? 1 : 2;
 }
 
 //===----------------------------------------------------------------------===//