[TLI] Refactor "is integer division cheap" queries.
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Wed, 19 Aug 2015 11:17:59 +0000 (11:17 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Wed, 19 Aug 2015 11:17:59 +0000 (11:17 +0000)
commita4fe29414d883239042d49813e28f0db7fd92391
treef08bce68357412dfab147e42f596c83f2a9c5677
parentd1c298190edd2cce626fc08fb05b1ef8752b9150
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245430 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/TargetLoweringBase.cpp
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
lib/Target/MSP430/MSP430ISelLowering.cpp
lib/Target/XCore/XCoreISelLowering.cpp