[llvm] r313676 - [MSP430] Align functions on 2-byte boundary instead of 4.

Vadzim Dambrouski via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 14:05:20 PDT 2017


Author: dambrouski
Date: Tue Sep 19 14:05:20 2017
New Revision: 313676

URL: http://llvm.org/viewvc/llvm-project?rev=313676&view=rev
Log:
[MSP430] Align functions on 2-byte boundary instead of 4.

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

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=313676&r1=313675&r2=313676&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp Tue Sep 19 14:05:20 2017
@@ -322,7 +322,7 @@ MSP430TargetLowering::MSP430TargetLoweri
   // TODO: __mspabi_srall, __mspabi_srlll, __mspabi_sllll
 
   setMinFunctionAlignment(1);
-  setPrefFunctionAlignment(2);
+  setPrefFunctionAlignment(1);
 }
 
 SDValue MSP430TargetLowering::LowerOperation(SDValue Op,




More information about the llvm-commits mailing list