[llvm-commits] [llvm] r70714 - /llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp

Anton Korobeynikov asl at math.spbu.ru
Sun May 3 06:03:14 PDT 2009


Author: asl
Date: Sun May  3 08:03:14 2009
New Revision: 70714

URL: http://llvm.org/viewvc/llvm-project?rev=70714&view=rev
Log:
We don't have any div at all - thus mark it as expensive

Modified:
    llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp

Modified: llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp?rev=70714&r1=70713&r2=70714&view=diff

==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp Sun May  3 08:03:14 2009
@@ -44,6 +44,11 @@
   // Compute derived properties from the register classes
   computeRegisterProperties();
 
+  // Provide all sorts of operation actions
+
+  // Division is expensive
+  setIntDivIsCheap(false);
+
   setOperationAction(ISD::RET, MVT::Other, Custom);
 }
 





More information about the llvm-commits mailing list