mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Cosmetic changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78655 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7fb8c3ffc0
commit
4a8ea215e6
@ -797,14 +797,14 @@ void ARMConstantIslands::AdjustBBOffsetsAfter(MachineBasicBlock *BB,
|
||||
if (!MBB->empty()) {
|
||||
// Constant pool entries require padding.
|
||||
if (MBB->begin()->getOpcode() == ARM::CONSTPOOL_ENTRY) {
|
||||
unsigned oldOffset = BBOffsets[i] - delta;
|
||||
if (oldOffset%4==0 && BBOffsets[i]%4!=0) {
|
||||
unsigned OldOffset = BBOffsets[i] - delta;
|
||||
if ((OldOffset%4) == 0 && (BBOffsets[i]%4) != 0) {
|
||||
// add new padding
|
||||
BBSizes[i] += 2;
|
||||
delta += 2;
|
||||
} else if (oldOffset%4!=0 && BBOffsets[i]%4==0) {
|
||||
} else if ((OldOffset%4) != 0 && (BBOffsets[i]%4) == 0) {
|
||||
// remove existing padding
|
||||
BBSizes[i] -=2;
|
||||
BBSizes[i] -= 2;
|
||||
delta -= 2;
|
||||
}
|
||||
}
|
||||
@ -812,13 +812,13 @@ void ARMConstantIslands::AdjustBBOffsetsAfter(MachineBasicBlock *BB,
|
||||
// following unconditional branches are removed by AnalyzeBranch.
|
||||
MachineInstr *ThumbJTMI = prior(MBB->end());
|
||||
if (ThumbJTMI->getOpcode() == ARM::tBR_JTr) {
|
||||
unsigned newMIOffset = GetOffsetOf(ThumbJTMI);
|
||||
unsigned oldMIOffset = newMIOffset - delta;
|
||||
if (oldMIOffset%4 == 0 && newMIOffset%4 != 0) {
|
||||
unsigned NewMIOffset = GetOffsetOf(ThumbJTMI);
|
||||
unsigned OldMIOffset = NewMIOffset - delta;
|
||||
if ((OldMIOffset%4) == 0 && (NewMIOffset%4) != 0) {
|
||||
// remove existing padding
|
||||
BBSizes[i] -= 2;
|
||||
delta -= 2;
|
||||
} else if (oldMIOffset%4 != 0 && newMIOffset%4 == 0) {
|
||||
} else if ((OldMIOffset%4) != 0 && (NewMIOffset%4) == 0) {
|
||||
// add new padding
|
||||
BBSizes[i] += 2;
|
||||
delta += 2;
|
||||
|
Loading…
Reference in New Issue
Block a user