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

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

llvm-svn: 142194
This commit is contained in:
Hal Finkel 2011-10-17 17:01:41 +00:00
parent 9e30a8355b
commit f5b7d5ea68

View File

@ -402,9 +402,16 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
setLibcallName(RTLIB::EXP2_PPCF128, "exp2l$LDBL128");
}
setMinFunctionAlignment(2);
if (PPCSubTarget.isDarwin())
setPrefFunctionAlignment(4);
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);