Revision: 125327
Author:   clattner
Date:     2007-03-24 20:39:48 -0700 (Sat, 24 Mar 2007)

Log Message:
-----------
use a correct substitute for the 'g' constraint, now that it is safe.

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/llvm-convert.cpp

Modified: apple-local/branches/llvm/gcc/llvm-convert.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-convert.cpp      2007-03-25 01:47:34 UTC 
(rev 125326)
+++ apple-local/branches/llvm/gcc/llvm-convert.cpp      2007-03-25 03:39:48 UTC 
(rev 125327)
@@ -3444,11 +3444,7 @@
   if (*Constraint == 'r')      // r is a special case for some reason.
     RegClass = GENERAL_REGS;
   else if (*Constraint == 'g')
-    // FIXME: 'imr' is the appropriate constraint to use here, as it allows
-    // maximum generality.  However, we accept just "r" for now because LLVM
-    // doesn't support multiple alternatives yet.
-    //return "imr"; 
-    return "r";
+    return "imr"; 
   else 
     RegClass = REG_CLASS_FROM_CONSTRAINT(*Constraint, Constraint);
   


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to