mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-01 17:29:33 +00:00
Fix up a few minor typos in comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71563 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8494526a23
commit
39bf051ec2
@ -996,7 +996,7 @@ void ARMConstantIslands::CreateNewWater(unsigned CPUserIndex,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// HandleConstantPoolUser - Analyze the specified user, checking to see if it
|
/// HandleConstantPoolUser - Analyze the specified user, checking to see if it
|
||||||
/// is out-of-range. If so, pick it up the constant pool value and move it some
|
/// is out-of-range. If so, pick up the constant pool value and move it some
|
||||||
/// place in-range. Return true if we changed any addresses (thus must run
|
/// place in-range. Return true if we changed any addresses (thus must run
|
||||||
/// another pass of branch lengthening), false otherwise.
|
/// another pass of branch lengthening), false otherwise.
|
||||||
bool ARMConstantIslands::HandleConstantPoolUser(MachineFunction &Fn,
|
bool ARMConstantIslands::HandleConstantPoolUser(MachineFunction &Fn,
|
||||||
@ -1160,7 +1160,7 @@ bool ARMConstantIslands::FixUpImmediateBr(MachineFunction &Fn, ImmBranch &Br) {
|
|||||||
/// FixUpUnconditionalBr - Fix up an unconditional branch whose destination is
|
/// FixUpUnconditionalBr - Fix up an unconditional branch whose destination is
|
||||||
/// too far away to fit in its displacement field. If the LR register has been
|
/// too far away to fit in its displacement field. If the LR register has been
|
||||||
/// spilled in the epilogue, then we can use BL to implement a far jump.
|
/// spilled in the epilogue, then we can use BL to implement a far jump.
|
||||||
/// Otherwise, add an intermediate branch instruction to to a branch.
|
/// Otherwise, add an intermediate branch instruction to a branch.
|
||||||
bool
|
bool
|
||||||
ARMConstantIslands::FixUpUnconditionalBr(MachineFunction &Fn, ImmBranch &Br) {
|
ARMConstantIslands::FixUpUnconditionalBr(MachineFunction &Fn, ImmBranch &Br) {
|
||||||
MachineInstr *MI = Br.MI;
|
MachineInstr *MI = Br.MI;
|
||||||
@ -1188,7 +1188,7 @@ ARMConstantIslands::FixUpConditionalBr(MachineFunction &Fn, ImmBranch &Br) {
|
|||||||
MachineInstr *MI = Br.MI;
|
MachineInstr *MI = Br.MI;
|
||||||
MachineBasicBlock *DestBB = MI->getOperand(0).getMBB();
|
MachineBasicBlock *DestBB = MI->getOperand(0).getMBB();
|
||||||
|
|
||||||
// Add a unconditional branch to the destination and invert the branch
|
// Add an unconditional branch to the destination and invert the branch
|
||||||
// condition to jump over it:
|
// condition to jump over it:
|
||||||
// blt L1
|
// blt L1
|
||||||
// =>
|
// =>
|
||||||
@ -1210,7 +1210,7 @@ ARMConstantIslands::FixUpConditionalBr(MachineFunction &Fn, ImmBranch &Br) {
|
|||||||
if (BMI != MI) {
|
if (BMI != MI) {
|
||||||
if (next(MachineBasicBlock::iterator(MI)) == prior(MBB->end()) &&
|
if (next(MachineBasicBlock::iterator(MI)) == prior(MBB->end()) &&
|
||||||
BMI->getOpcode() == Br.UncondBr) {
|
BMI->getOpcode() == Br.UncondBr) {
|
||||||
// Last MI in the BB is a unconditional branch. Can we simply invert the
|
// Last MI in the BB is an unconditional branch. Can we simply invert the
|
||||||
// condition and swap destinations:
|
// condition and swap destinations:
|
||||||
// beq L1
|
// beq L1
|
||||||
// b L2
|
// b L2
|
||||||
@ -1230,7 +1230,7 @@ ARMConstantIslands::FixUpConditionalBr(MachineFunction &Fn, ImmBranch &Br) {
|
|||||||
|
|
||||||
if (NeedSplit) {
|
if (NeedSplit) {
|
||||||
SplitBlockBeforeInstr(MI);
|
SplitBlockBeforeInstr(MI);
|
||||||
// No need for the branch to the next block. We're adding a unconditional
|
// No need for the branch to the next block. We're adding an unconditional
|
||||||
// branch to the destination.
|
// branch to the destination.
|
||||||
int delta = TII->GetInstSizeInBytes(&MBB->back());
|
int delta = TII->GetInstSizeInBytes(&MBB->back());
|
||||||
BBSizes[MBB->getNumber()] -= delta;
|
BBSizes[MBB->getNumber()] -= delta;
|
||||||
|
Loading…
Reference in New Issue
Block a user