[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcInstrInfo.h

Chris Lattner lattner at cs.uiuc.edu
Tue Feb 10 15:13:05 PST 2004


Changes in directory llvm/lib/Target/Sparc:

SparcInstrInfo.h updated: 1.1 -> 1.2

---
Log message:

Stop using this method


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Target/Sparc/SparcInstrInfo.h
diff -u llvm/lib/Target/Sparc/SparcInstrInfo.h:1.1 llvm/lib/Target/Sparc/SparcInstrInfo.h:1.2
--- llvm/lib/Target/Sparc/SparcInstrInfo.h:1.1	Wed Dec 17 16:04:00 2003
+++ llvm/lib/Target/Sparc/SparcInstrInfo.h	Tue Feb 10 15:12:06 2004
@@ -65,7 +65,7 @@
     if (MI.getOpcode() == V9::SETHI && MI.getNumOperands() == 2) {
       const MachineOperand &op0 = MI.getOperand(0), &op1 = MI.getOperand(1);
       if (op0.isImmediate() && op0.getImmedValue() == 0 &&
-          op1.isMachineRegister() &&
+          op1.getType() == MachineOperand::MO_MachineRegister &&
           op1.getMachineRegNum() == SparcIntRegClass::g0)
       {
         return true;





More information about the llvm-commits mailing list