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

Eli Friedman eli.friedman at gmail.com
Tue Oct 25 13:34:22 PDT 2011


Author: efriedma
Date: Tue Oct 25 15:34:22 2011
New Revision: 142959

URL: http://llvm.org/viewvc/llvm-project?rev=142959&view=rev
Log:
Remove a couple redundant checks.


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=142959&r1=142958&r2=142959&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Tue Oct 25 15:34:22 2011
@@ -7528,8 +7528,6 @@
   // Check to see if we can perform the "gzip trick", transforming
   // (select_cc setlt X, 0, A, 0) -> (and (sra X, (sub size(X), 1), A)
   if (N1C && N3C && N3C->isNullValue() && CC == ISD::SETLT &&
-      N0.getValueType().isInteger() &&
-      N2.getValueType().isInteger() &&
       (N1C->isNullValue() ||                         // (a < 0) ? b : 0
        (N1C->getAPIntValue() == 1 && N0 == N2))) {   // (a < 1) ? a : 0
     EVT XType = N0.getValueType();





More information about the llvm-commits mailing list