[llvm-commits] [llvm] r133553 - /llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Eric Christopher echristo at apple.com
Tue Jun 21 15:10:57 PDT 2011


Author: echristo
Date: Tue Jun 21 17:10:57 2011
New Revision: 133553

URL: http://llvm.org/viewvc/llvm-project?rev=133553&view=rev
Log:
Handle the memory-ness of all U+ ARM constraints.

Noticed on inspection.

Modified:
    llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=133553&r1=133552&r2=133553&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Tue Jun 21 17:10:57 2011
@@ -7379,9 +7379,12 @@
     case 'l': return C_RegisterClass;
     case 'w': return C_RegisterClass;
     }
-  } else {
-    if (Constraint == "Uv")
-      return C_Memory;
+  } else if (Constraint.size() == 2) {
+    switch (Constraint[0]) {
+    default: break;
+    // All 'U+' constraints are addresses.
+    case 'U': return C_Memory;
+    }
   }
   return TargetLowering::getConstraintType(Constraint);
 }





More information about the llvm-commits mailing list