diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-12-07 03:55:52 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-12-07 03:55:52 +0000 |
commit | f9081a8afef5024b2ece67d1a101aaaf4bd3933e (patch) | |
tree | 78c1516d8320a9d8459dbcffc98f225cffc2e010 /llvm/lib/CodeGen | |
parent | 2931cd9cf97551653b9952123ce307b22e2833fa (diff) | |
download | bcm5719-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')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
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 |