[llvm-commits] [llvm] r89572 - /llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sat Nov 21 17:13:39 PST 2009
Author: asl
Date: Sat Nov 21 19:13:39 2009
New Revision: 89572
URL: http://llvm.org/viewvc/llvm-project?rev=89572&view=rev
Log:
Use 2-byte alignment for functions. 4 bytes are clear overkill here.
Modified:
llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp
Modified: llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp?rev=89572&r1=89571&r2=89572&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp Sat Nov 21 19:13:39 2009
@@ -162,7 +162,7 @@
/// 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;
}
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list