diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-10-25 20:34:22 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-10-25 20:34:22 +0000 |
commit | 9312613137caf4f1e7b4747964b8daf3de79c190 (patch) | |
tree | e12f34fd85ff5e68c3edd6d019a43276c6fdb442 /lib | |
parent | 847915d63affbec8eb062eca2595ee6a762f2332 (diff) | |
download | external_llvm-9312613137caf4f1e7b4747964b8daf3de79c190.zip external_llvm-9312613137caf4f1e7b4747964b8daf3de79c190.tar.gz external_llvm-9312613137caf4f1e7b4747964b8daf3de79c190.tar.bz2 |
Remove a couple redundant checks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 10daa31..91ce2a1 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -7528,8 +7528,6 @@ SDValue DAGCombiner::SimplifySelectCC(DebugLoc DL, SDValue N0, SDValue N1, // 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(); |