aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:03:14 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:03:14 +0000
commitee6380b4e9156e3af36be608838dc1af466a6886 (patch)
tree9a4afb0421e3312a30a28348949926b3211e8cca
parent15d7b1efe33b0d8c6bdf069783ddd1b9b9a2645e (diff)
downloadexternal_llvm-ee6380b4e9156e3af36be608838dc1af466a6886.zip
external_llvm-ee6380b4e9156e3af36be608838dc1af466a6886.tar.gz
external_llvm-ee6380b4e9156e3af36be608838dc1af466a6886.tar.bz2
We don't have any div at all - thus mark it as expensive
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70714 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/MSP430/MSP430ISelLowering.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/MSP430/MSP430ISelLowering.cpp b/lib/Target/MSP430/MSP430ISelLowering.cpp
index c4b3993..8427fc7 100644
--- a/lib/Target/MSP430/MSP430ISelLowering.cpp
+++ b/lib/Target/MSP430/MSP430ISelLowering.cpp
@@ -44,6 +44,11 @@ MSP430TargetLowering::MSP430TargetLowering(MSP430TargetMachine &tm) :
// 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);
}