projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d7bb39
)
We don't have any div at all - thus mark it as expensive
author
Anton Korobeynikov
<asl@math.spbu.ru>
Sun, 3 May 2009 13:03:14 +0000
(13:03 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Sun, 3 May 2009 13:03:14 +0000
(13:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70714
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/MSP430/MSP430ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/MSP430/MSP430ISelLowering.cpp
b/lib/Target/MSP430/MSP430ISelLowering.cpp
index c4b3993237a7827d4b5c06a948681dfd151e2608..8427fc7cce9489c5e2b55b2328d71f7e361b77b2 100644
(file)
--- 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);
}