From dcdab4cd3aca7c587aa2d6cf20ebed1b9abe920e Mon Sep 17 00:00:00 2001 From: Michael Kuperstein Date: Wed, 19 Aug 2015 11:17:59 +0000 Subject: [TLI] Refactor "is integer division cheap" queries. This removes the isPow2SDivCheap() query, as it is not currently used in any meaningful way. isIntDivCheap() no longer relies on a state variable (as all in-tree target set it to false), but the interface allows querying based on the type optimization level. NFC. Differential Revision: http://reviews.llvm.org/D12082 llvm-svn: 245430 --- llvm/lib/Target/MSP430/MSP430ISelLowering.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/Target/MSP430/MSP430ISelLowering.cpp') diff --git a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp index 3c198636377..d1d1cdb86fe 100644 --- a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp +++ b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp @@ -69,10 +69,6 @@ MSP430TargetLowering::MSP430TargetLowering(const TargetMachine &TM, computeRegisterProperties(STI.getRegisterInfo()); // Provide all sorts of operation actions - - // Division is expensive - setIntDivIsCheap(false); - setStackPointerRegisterToSaveRestore(MSP430::SP); setBooleanContents(ZeroOrOneBooleanContent); setBooleanVectorContents(ZeroOrOneBooleanContent); // FIXME: Is this correct? -- cgit v1.2.3