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

Eric Christopher echristo at apple.com
Sun Sep 26 23:08:12 PDT 2010


Author: echristo
Date: Mon Sep 27 01:08:12 2010
New Revision: 114813

URL: http://llvm.org/viewvc/llvm-project?rev=114813&view=rev
Log:
Insert missing coherency in comment.  Add a quick check for hardware
divide support also.

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=114813&r1=114812&r2=114813&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Mon Sep 27 01:08:12 2010
@@ -1144,9 +1144,13 @@
   const Type *Ty = I->getType();
   if (!isTypeLegal(Ty, VT))
     return false;
-    
-  // If we have integer div support we should have gotten already, emit a
-  // libcall.
+
+  // If we have integer div support we should have selected this automagically.
+  // In case we have a real miss go ahead and return false and we'll pick
+  // it up later.
+  if (Subtarget->hasDivide()) return false;  
+  
+  // Otherwise emit a libcall.
   RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL;
   if (VT == MVT::i16)
     LC = RTLIB::SDIV_I16;





More information about the llvm-commits mailing list