mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Fix some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68404 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -211,7 +211,7 @@ ARMInstrInfo::convertToThreeAddress(MachineFunction::iterator &MFI,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try spliting an indexed load / store to a un-indexed one plus an add/sub
|
// Try splitting an indexed load/store to an un-indexed one plus an add/sub
|
||||||
// operation.
|
// operation.
|
||||||
unsigned MemOpc = getUnindexedOpcode(MI->getOpcode());
|
unsigned MemOpc = getUnindexedOpcode(MI->getOpcode());
|
||||||
if (MemOpc == 0)
|
if (MemOpc == 0)
|
||||||
@@ -401,8 +401,8 @@ bool ARMInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB,MachineBasicBlock *&TBB,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Likewise if it ends with a branch table followed by an unconditional branch.
|
// ...likewise if it ends with a branch table followed by an unconditional
|
||||||
// The branch folder can create these, and we must get rid of them for
|
// branch. The branch folder can create these, and we must get rid of them for
|
||||||
// correctness of Thumb constant islands.
|
// correctness of Thumb constant islands.
|
||||||
if ((SecondLastOpc == ARM::BR_JTr || SecondLastOpc==ARM::BR_JTm ||
|
if ((SecondLastOpc == ARM::BR_JTr || SecondLastOpc==ARM::BR_JTm ||
|
||||||
SecondLastOpc == ARM::BR_JTadd || SecondLastOpc==ARM::tBR_JTr) &&
|
SecondLastOpc == ARM::BR_JTadd || SecondLastOpc==ARM::tBR_JTr) &&
|
||||||
@@ -692,7 +692,7 @@ MachineInstr *ARMInstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
|
|||||||
default: break;
|
default: break;
|
||||||
case ARM::MOVr: {
|
case ARM::MOVr: {
|
||||||
if (MI->getOperand(4).getReg() == ARM::CPSR)
|
if (MI->getOperand(4).getReg() == ARM::CPSR)
|
||||||
// If it is updating CPSR, then it cannot be foled.
|
// If it is updating CPSR, then it cannot be folded.
|
||||||
break;
|
break;
|
||||||
unsigned Pred = MI->getOperand(2).getImm();
|
unsigned Pred = MI->getOperand(2).getImm();
|
||||||
unsigned PredReg = MI->getOperand(3).getReg();
|
unsigned PredReg = MI->getOperand(3).getReg();
|
||||||
@@ -781,7 +781,7 @@ bool ARMInstrInfo::canFoldMemoryOperand(const MachineInstr *MI,
|
|||||||
switch (Opc) {
|
switch (Opc) {
|
||||||
default: break;
|
default: break;
|
||||||
case ARM::MOVr:
|
case ARM::MOVr:
|
||||||
// If it is updating CPSR, then it cannot be foled.
|
// If it is updating CPSR, then it cannot be folded.
|
||||||
return MI->getOperand(4).getReg() != ARM::CPSR;
|
return MI->getOperand(4).getReg() != ARM::CPSR;
|
||||||
case ARM::tMOVr: {
|
case ARM::tMOVr: {
|
||||||
if (OpNum == 0) { // move -> store
|
if (OpNum == 0) { // move -> store
|
||||||
|
Reference in New Issue
Block a user