diff options
author | Hal Finkel <hfinkel@anl.gov> | 2011-10-17 18:53:03 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2011-10-17 18:53:03 +0000 |
commit | c61291609d5d2044fa9f9fdcb1fe22cfd7c998e2 (patch) | |
tree | 804a3541ad3e78928507972667ecc4b49624e18f | |
parent | c378015d1cc073e5e8027491514f50e2c7413f9e (diff) | |
download | external_llvm-c61291609d5d2044fa9f9fdcb1fe22cfd7c998e2.zip external_llvm-c61291609d5d2044fa9f9fdcb1fe22cfd7c998e2.tar.gz external_llvm-c61291609d5d2044fa9f9fdcb1fe22cfd7c998e2.tar.bz2 |
Revert change to function alignment b/c existing logic was fine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142224 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index dcc0568..d6b8a9e 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/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); |