From 1476d97037e07d17635468fcd3a2ee0111972574 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sun, 3 May 2009 13:03:14 +0000 Subject: [PATCH] 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 --- lib/Target/MSP430/MSP430ISelLowering.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.34.1