[llvm-commits] [llvm] r146015 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Eli Friedman eli.friedman at gmail.com
Tue Dec 6 19:55:52 PST 2011


Author: efriedma
Date: Tue Dec  6 21:55:52 2011
New Revision: 146015

URL: http://llvm.org/viewvc/llvm-project?rev=146015&view=rev
Log:
Zap unnecessary isIntDivCheap() check.  PR11485.  No testcase because this doesn't affect any in-tree target.


Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=146015&r1=146014&r2=146015&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Tue Dec  6 21:55:52 2011
@@ -1777,7 +1777,7 @@
                          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





More information about the llvm-commits mailing list