[llvm-commits] [llvm] r144356 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp

Chad Rosier mcrosier at apple.com
Thu Nov 10 18:39:00 PST 2011


Author: mcrosier
Date: Thu Nov 10 20:38:59 2011
New Revision: 144356

URL: http://llvm.org/viewvc/llvm-project?rev=144356&view=rev
Log:
When loading a value, treat an i1 as an i8.

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

Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=144356&r1=144355&r2=144356&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Thu Nov 10 20:38:59 2011
@@ -955,6 +955,7 @@
   switch (VT.getSimpleVT().SimpleTy) {
     // This is mostly going to be Neon/vector support.
     default: return false;
+    case MVT::i1:
     case MVT::i8:
       Opc = isThumb2 ? ARM::t2LDRBi12 : ARM::LDRBi12;
       RC = ARM::GPRRegisterClass;





More information about the llvm-commits mailing list