[llvm-commits] [125327] use a correct substitute for the 'g' constraint, now that it is safe.
clattner at apple.com
clattner at apple.com
Sat Mar 24 20:39:49 PDT 2007
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);
More information about the llvm-commits
mailing list