[llvm-commits] CVS: llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 29 11:26:01 PST 2002


Changes in directory llvm/lib/CodeGen/InstrSelection:

InstrSelectionSupport.cpp updated: 1.39 -> 1.40

---
Log message:

Use higher level method


---
Diffs of the changes:

Index: llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
diff -u llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp:1.39 llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp:1.40
--- llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp:1.39	Mon Oct 28 17:54:47 2002
+++ llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp	Tue Oct 29 11:25:41 2002
@@ -471,7 +471,7 @@
   
   MachineOpCode opCode = minstr->getOpCode();
   const MachineInstrInfo& instrInfo = target.getInstrInfo();
-  const MachineInstrDescriptor& instrDesc = instrInfo.getDescriptor(opCode);
+  int resultPos = instrInfo.getResultPos(opCode);
   int immedPos = instrInfo.getImmedConstantPos(opCode);
 
   Function *F = vmInstr->getParent()->getParent();
@@ -482,7 +482,7 @@
           
       // Skip the result position, preallocated machine registers, or operands
       // that cannot be constants (CC regs or PC-relative displacements)
-      if (instrDesc.resultPos == (int) op ||
+      if (resultPos == (int)op ||
           mop.getType() == MachineOperand::MO_MachineRegister ||
           mop.getType() == MachineOperand::MO_CCRegister ||
           mop.getType() == MachineOperand::MO_PCRelativeDisp)





More information about the llvm-commits mailing list