summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore/XCoreISelLowering.cpp
diff options
context:
space:
mode:
authorMichael Kuperstein <michael.m.kuperstein@intel.com>2015-08-19 11:17:59 +0000
committerMichael Kuperstein <michael.m.kuperstein@intel.com>2015-08-19 11:17:59 +0000
commitdcdab4cd3aca7c587aa2d6cf20ebed1b9abe920e (patch)
treec931ebdbf850cc247cf11cd736286c8b197c40af /llvm/lib/Target/XCore/XCoreISelLowering.cpp
parent76c288062adfada1401c0b613a398519a3a1edd1 (diff)
downloadbcm5719-llvm-dcdab4cd3aca7c587aa2d6cf20ebed1b9abe920e.tar.gz
bcm5719-llvm-dcdab4cd3aca7c587aa2d6cf20ebed1b9abe920e.zip
[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
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreISelLowering.cpp')
-rw-r--r--llvm/lib/Target/XCore/XCoreISelLowering.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Target/XCore/XCoreISelLowering.cpp b/llvm/lib/Target/XCore/XCoreISelLowering.cpp
index c0dcaa55d27..d892c79ae14 100644
--- a/llvm/lib/Target/XCore/XCoreISelLowering.cpp
+++ b/llvm/lib/Target/XCore/XCoreISelLowering.cpp
@@ -79,9 +79,6 @@ XCoreTargetLowering::XCoreTargetLowering(const TargetMachine &TM,
// Compute derived properties from the register classes
computeRegisterProperties(Subtarget.getRegisterInfo());
- // Division is expensive
- setIntDivIsCheap(false);
-
setStackPointerRegisterToSaveRestore(XCore::SP);
setSchedulingPreference(Sched::Source);
OpenPOWER on IntegriCloud