summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-24 15:24:03 +0000
committerDan Gohman <gohman@apple.com>2010-06-24 15:24:03 +0000
commit463f26b4be5c281da6f4f970b0477d89c1206dc1 (patch)
tree868f14334cd7f75827a8b56710c5fba3c8d86b67 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentdf6b33e77887ca1f70275718bf4abd50daad9501 (diff)
downloadbcm5719-llvm-463f26b4be5c281da6f4f970b0477d89c1206dc1.tar.gz
bcm5719-llvm-463f26b4be5c281da6f4f970b0477d89c1206dc1.zip
Eliminate the other half of the BRCOND optimization, and update
as many tests as possible. llvm-svn: 106749
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 5719cefb42e..cd86f8fc32e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3015,7 +3015,6 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, EVT VT,
SDValue N1, SDValue N2, SDValue N3) {
// Perform various simplifications.
ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1.getNode());
- ConstantSDNode *N2C = dyn_cast<ConstantSDNode>(N2.getNode());
switch (Opcode) {
case ISD::CONCAT_VECTORS:
// A CONCAT_VECTOR with all operands BUILD_VECTOR can be simplified to
@@ -3045,12 +3044,6 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, EVT VT,
if (N2 == N3) return N2; // select C, X, X -> X
break;
- case ISD::BRCOND:
- if (N2C) {
- if (!N2C->getZExtValue()) // Unconditional branch
- return N1; // Never-taken branch
- }
- break;
case ISD::VECTOR_SHUFFLE:
llvm_unreachable("should use getVectorShuffle constructor!");
break;
OpenPOWER on IntegriCloud