summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-12-07 03:55:52 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-12-07 03:55:52 +0000
commitf9081a8afef5024b2ece67d1a101aaaf4bd3933e (patch)
tree78c1516d8320a9d8459dbcffc98f225cffc2e010 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent2931cd9cf97551653b9952123ce307b22e2833fa (diff)
downloadbcm5719-llvm-f9081a8afef5024b2ece67d1a101aaaf4bd3933e.tar.gz
bcm5719-llvm-f9081a8afef5024b2ece67d1a101aaaf4bd3933e.zip
Zap unnecessary isIntDivCheap() check. PR11485. No testcase because this doesn't affect any in-tree target.
llvm-svn: 146015
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 2824fdb8860..9f628e95403 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1777,7 +1777,7 @@ SDValue DAGCombiner::visitSDIV(SDNode *N) {
N0, N1);
}
// fold (sdiv X, pow2) -> simple ops after legalize
- if (N1C && !N1C->isNullValue() && !TLI.isIntDivCheap() &&
+ if (N1C && !N1C->isNullValue() &&
(N1C->getAPIntValue().isPowerOf2() ||
(-N1C->getAPIntValue()).isPowerOf2())) {
// If dividing by powers of two is cheap, then don't perform the following
OpenPOWER on IntegriCloud