]> granicus.if.org Git - llvm/commitdiff
[MSP430] Align functions on 2-byte boundary instead of 4.
authorVadzim Dambrouski <pftbest@gmail.com>
Tue, 19 Sep 2017 21:05:20 +0000 (21:05 +0000)
committerVadzim Dambrouski <pftbest@gmail.com>
Tue, 19 Sep 2017 21:05:20 +0000 (21:05 +0000)
Summary:
There is no benefit in having the 4-byte alignment, and removing this
restriction can save a lot of space for some applications.

Reviewers: asl, awygle

Reviewed By: awygle

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D36165

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313676 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MSP430/MSP430ISelLowering.cpp

index 55e371f1d22af142f838973153f744af4f9eaace..7cfcb965899f6e9dbc024f473361be347c7c8df9 100644 (file)
@@ -322,7 +322,7 @@ MSP430TargetLowering::MSP430TargetLowering(const TargetMachine &TM,
   // TODO: __mspabi_srall, __mspabi_srlll, __mspabi_sllll
 
   setMinFunctionAlignment(1);
-  setPrefFunctionAlignment(2);
+  setPrefFunctionAlignment(1);
 }
 
 SDValue MSP430TargetLowering::LowerOperation(SDValue Op,