[llvm-commits] CVS: llvm/lib/Target/Sparc/FPMover.cpp
Evan Cheng
evan.cheng at apple.com
Wed Nov 29 23:12:20 PST 2006
Changes in directory llvm/lib/Target/Sparc:
FPMover.cpp updated: 1.14 -> 1.15
---
Log message:
MachineInstr::setOpcode -> MachineInstr::setInstrDescriptor
---
Diffs of the changes: (+4 -3)
FPMover.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/Sparc/FPMover.cpp
diff -u llvm/lib/Target/Sparc/FPMover.cpp:1.14 llvm/lib/Target/Sparc/FPMover.cpp:1.15
--- llvm/lib/Target/Sparc/FPMover.cpp:1.14 Mon Nov 27 17:37:22 2006
+++ llvm/lib/Target/Sparc/FPMover.cpp Thu Nov 30 01:12:03 2006
@@ -96,12 +96,13 @@
getDoubleRegPair(DestDReg, EvenDestReg, OddDestReg);
getDoubleRegPair(SrcDReg, EvenSrcReg, OddSrcReg);
+ const TargetInstrInfo *TII = TM.getInstrInfo();
if (MI->getOpcode() == SP::FpMOVD)
- MI->setOpcode(SP::FMOVS);
+ MI->setInstrDescriptor(TII->get(SP::FMOVS));
else if (MI->getOpcode() == SP::FpNEGD)
- MI->setOpcode(SP::FNEGS);
+ MI->setInstrDescriptor(TII->get(SP::FNEGS));
else if (MI->getOpcode() == SP::FpABSD)
- MI->setOpcode(SP::FABSS);
+ MI->setInstrDescriptor(TII->get(SP::FABSS));
else
assert(0 && "Unknown opcode!");
More information about the llvm-commits
mailing list