1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[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

llvm-svn: 313676
This commit is contained in:
Vadzim Dambrouski 2017-09-19 21:05:20 +00:00
parent 484c55032a
commit 2fef8b63cb

View 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,