[llvm-commits] CVS: llvm/lib/Target/X86/X86FloatingPoint.cpp
Evan Cheng
evan.cheng at apple.com
Wed Apr 25 15:13:51 PDT 2007
Changes in directory llvm/lib/Target/X86:
X86FloatingPoint.cpp updated: 1.67 -> 1.68
---
Log message:
Match MachineFunction::UsedPhysRegs changes.
---
Diffs of the changes: (+1 -2)
X86FloatingPoint.cpp | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/lib/Target/X86/X86FloatingPoint.cpp
diff -u llvm/lib/Target/X86/X86FloatingPoint.cpp:1.67 llvm/lib/Target/X86/X86FloatingPoint.cpp:1.68
--- llvm/lib/Target/X86/X86FloatingPoint.cpp:1.67 Tue Dec 19 16:59:26 2006
+++ llvm/lib/Target/X86/X86FloatingPoint.cpp Wed Apr 25 17:13:27 2007
@@ -161,12 +161,11 @@
bool FPS::runOnMachineFunction(MachineFunction &MF) {
// We only need to run this pass if there are any FP registers used in this
// function. If it is all integer, there is nothing for us to do!
- const bool *PhysRegsUsed = MF.getUsedPhysregs();
bool FPIsUsed = false;
assert(X86::FP6 == X86::FP0+6 && "Register enums aren't sorted right!");
for (unsigned i = 0; i <= 6; ++i)
- if (PhysRegsUsed[X86::FP0+i]) {
+ if (MF.isPhysRegUsed(X86::FP0+i)) {
FPIsUsed = true;
break;
}
More information about the llvm-commits
mailing list