[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Thu Aug 17 10:50:39 PDT 2006



Changes in directory llvm/lib/Target/X86:

X86ISelLowering.cpp updated: 1.247 -> 1.248
---
Log message:

Fix handling of 'g'.  Closes 883

---
Diffs of the changes:  (+4 -0)

 X86ISelLowering.cpp |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.247 llvm/lib/Target/X86/X86ISelLowering.cpp:1.248
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.247	Thu Aug 17 11:07:50 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp	Thu Aug 17 12:50:12 2006
@@ -4187,6 +4187,9 @@
   case 'S':
   case 'D':
   case 'c':
+  case 'g': //FIXME: This over-constrains g.  It should be replaced by rmi in
+            //       target independent code (I think this constraint is target
+            //       independent)
     return C_RegisterClass;
   default: return TargetLowering::getConstraintType(ConstraintLetter);
   }
@@ -4218,6 +4221,7 @@
       break;
     case 'r':   // GENERAL_REGS
     case 'R':   // LEGACY_REGS
+    case 'g':
       if (VT == MVT::i32)
         return make_vector<unsigned>(X86::EAX, X86::EDX, X86::ECX, X86::EBX,
                                      X86::ESI, X86::EDI, X86::EBP, X86::ESP, 0);






More information about the llvm-commits mailing list