summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
diff options
context:
space:
mode:
authorVadzim Dambrouski <pftbest@gmail.com>2017-09-19 21:05:20 +0000
committerVadzim Dambrouski <pftbest@gmail.com>2017-09-19 21:05:20 +0000
commit8cc8b63b0656b857eb9e9ce773529f29594d2ac1 (patch)
treea7aa0c2c2b3d4aeefcbabe9237c556ed16128787 /llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
parent1cf49e4d129bf63db3dcb96dd6b651be5c0cc836 (diff)
downloadbcm5719-llvm-8cc8b63b0656b857eb9e9ce773529f29594d2ac1.tar.gz
bcm5719-llvm-8cc8b63b0656b857eb9e9ce773529f29594d2ac1.zip
[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
Diffstat (limited to 'llvm/lib/Target/MSP430/MSP430ISelLowering.cpp')
-rw-r--r--llvm/lib/Target/MSP430/MSP430ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
index 55e371f1d22..7cfcb965899 100644
--- a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
+++ b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
@@ -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,
OpenPOWER on IntegriCloud