[PATCH] D36165: [MSP430] Align functions on 2-byte boundary instead of 4.

Vadzim Dambrouski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 1 11:13:15 PDT 2017


pftbest created this revision.

There is no benefit in having the 4-byte alignment, and removing this
restriction can save a lot of space for some applications.


https://reviews.llvm.org/D36165

Files:
  lib/Target/MSP430/MSP430ISelLowering.cpp


Index: lib/Target/MSP430/MSP430ISelLowering.cpp
===================================================================
--- lib/Target/MSP430/MSP430ISelLowering.cpp
+++ lib/Target/MSP430/MSP430ISelLowering.cpp
@@ -322,7 +322,7 @@
   // TODO: __mspabi_srall, __mspabi_srlll, __mspabi_sllll
 
   setMinFunctionAlignment(1);
-  setPrefFunctionAlignment(2);
+  setPrefFunctionAlignment(1);
 }
 
 SDValue MSP430TargetLowering::LowerOperation(SDValue Op,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36165.109161.patch
Type: text/x-patch
Size: 445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170801/4a112bd0/attachment.bin>


More information about the llvm-commits mailing list