mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-13 08:26:02 +00:00
Add obvious constantness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168396 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -198,7 +198,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// getScratchReg - Return an FP register that is not currently in use.
|
/// getScratchReg - Return an FP register that is not currently in use.
|
||||||
unsigned getScratchReg() {
|
unsigned getScratchReg() const {
|
||||||
for (int i = NumFPRegs - 1; i >= 8; --i)
|
for (int i = NumFPRegs - 1; i >= 8; --i)
|
||||||
if (!isLive(i))
|
if (!isLive(i))
|
||||||
return i;
|
return i;
|
||||||
@@ -206,7 +206,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// isScratchReg - Returns trus if RegNo is a scratch FP register.
|
/// isScratchReg - Returns trus if RegNo is a scratch FP register.
|
||||||
bool isScratchReg(unsigned RegNo) {
|
bool isScratchReg(unsigned RegNo) const {
|
||||||
return RegNo > 8 && RegNo < NumFPRegs;
|
return RegNo > 8 && RegNo < NumFPRegs;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -311,7 +311,7 @@ namespace {
|
|||||||
void handleSpecialFP(MachineBasicBlock::iterator &I);
|
void handleSpecialFP(MachineBasicBlock::iterator &I);
|
||||||
|
|
||||||
// Check if a COPY instruction is using FP registers.
|
// Check if a COPY instruction is using FP registers.
|
||||||
bool isFPCopy(MachineInstr *MI) {
|
bool isFPCopy(MachineInstr *MI) const {
|
||||||
unsigned DstReg = MI->getOperand(0).getReg();
|
unsigned DstReg = MI->getOperand(0).getReg();
|
||||||
unsigned SrcReg = MI->getOperand(1).getReg();
|
unsigned SrcReg = MI->getOperand(1).getReg();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user