mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +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:
parent
684dfcf724
commit
98daa9dcc8
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user