diff --git a/lib/Target/MSP430/MSP430ISelLowering.cpp b/lib/Target/MSP430/MSP430ISelLowering.cpp index c4b3993237a..8427fc7cce9 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); }