summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2011-10-17 18:53:03 +0000
committerHal Finkel <hfinkel@anl.gov>2011-10-17 18:53:03 +0000
commit652985764e7f9985ae051fc7edb7cd02be3f3e72 (patch)
tree1d0b95348d67894b981937a5cf1ebc01ec967e8c /llvm/lib/Target/PowerPC
parent34957911e7a43cd3e8c7e50e2b34f995ec16a116 (diff)
downloadbcm5719-llvm-652985764e7f9985ae051fc7edb7cd02be3f3e72.tar.gz
bcm5719-llvm-652985764e7f9985ae051fc7edb7cd02be3f3e72.zip
Revert change to function alignment b/c existing logic was fine
llvm-svn: 142224
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index dcc05683682..d6b8a9ee93c 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -402,16 +402,9 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
setLibcallName(RTLIB::EXP2_PPCF128, "exp2l$LDBL128");
}
- if (PPCSubTarget.isBookE()) {
- // Book E: Instructions are always four bytes long and word-aligned.
- setMinFunctionAlignment(4);
- setPrefFunctionAlignment(8);
- }
- else {
- setMinFunctionAlignment(2);
- if (PPCSubTarget.isDarwin())
- setPrefFunctionAlignment(4);
- }
+ setMinFunctionAlignment(2);
+ if (PPCSubTarget.isDarwin())
+ setPrefFunctionAlignment(4);
setInsertFencesForAtomic(true);
OpenPOWER on IntegriCloud