commit | 1476d97037e07d17635468fcd3a2ee0111972574 | [log] [tgz] |
---|---|---|
author | Anton Korobeynikov <asl@math.spbu.ru> | Sun May 03 13:03:14 2009 +0000 |
committer | Anton Korobeynikov <asl@math.spbu.ru> | Sun May 03 13:03:14 2009 +0000 |
tree | 9a4afb0421e3312a30a28348949926b3211e8cca | |
parent | 8d7bb3998b7c000780f43d11ed9c443e432fbe04 [diff] [blame] |
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
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 @@ // 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); }