summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-10-25 20:34:22 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-10-25 20:34:22 +0000
commit3e9ef907e0b91f40b29f7c7d035045043ea34794 (patch)
tree8ca08e6f503c46f388d449ec23c97eea694afec6 /llvm
parent67a5df53292ea7fd973ae66a8c87fc20a808eded (diff)
downloadbcm5719-llvm-3e9ef907e0b91f40b29f7c7d035045043ea34794.tar.gz
bcm5719-llvm-3e9ef907e0b91f40b29f7c7d035045043ea34794.zip
Remove a couple redundant checks.
llvm-svn: 142959
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 10daa31b6a3..91ce2a19699 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud