diff options
author | Jakub Staszak <kubastaszak@gmail.com> | 2012-11-20 23:32:32 +0000 |
---|---|---|
committer | Jakub Staszak <kubastaszak@gmail.com> | 2012-11-20 23:32:32 +0000 |
commit | 8c67c03b0cd4bf2421d21e588d131bb0d2023695 (patch) | |
tree | 5e8f2ad8309e6128d3d97d878e0b0e6e2143c278 /lib/Target/X86 | |
parent | 7dc68db9f006959775b0689b31a36e4be4930126 (diff) | |
download | llvm-8c67c03b0cd4bf2421d21e588d131bb0d2023695.tar.gz llvm-8c67c03b0cd4bf2421d21e588d131bb0d2023695.tar.bz2 llvm-8c67c03b0cd4bf2421d21e588d131bb0d2023695.tar.xz |
Add obvious constantness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/X86FloatingPoint.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/X86/X86FloatingPoint.cpp b/lib/Target/X86/X86FloatingPoint.cpp index 791f5982af..a3840f58bc 100644 --- a/lib/Target/X86/X86FloatingPoint.cpp +++ b/lib/Target/X86/X86FloatingPoint.cpp @@ -198,7 +198,7 @@ namespace { } /// getScratchReg - Return an FP register that is not currently in use. - unsigned getScratchReg() { + unsigned getScratchReg() const { for (int i = NumFPRegs - 1; i >= 8; --i) if (!isLive(i)) return i; @@ -206,7 +206,7 @@ namespace { } /// isScratchReg - Returns trus if RegNo is a scratch FP register. - bool isScratchReg(unsigned RegNo) { + bool isScratchReg(unsigned RegNo) const { return RegNo > 8 && RegNo < NumFPRegs; } @@ -311,7 +311,7 @@ namespace { void handleSpecialFP(MachineBasicBlock::iterator &I); // 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 SrcReg = MI->getOperand(1).getReg(); |