1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-01-27 14:34:58 +00:00

Instructions for Book E PPC should be word aligned, set function alignment to reflect this

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Hal Finkel 2011-10-17 17:01:41 +00:00
parent 684dfcf724
commit 98daa9dcc8

@ -402,9 +402,16 @@ 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);
}
setInsertFencesForAtomic(true);