aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-13 02:47:57 +0000
committerChris Lattner <sabre@nondot.org>2005-04-13 02:47:57 +0000
commit8a8dbfa57cb8bf6bf98a5cfc434dff4d9bdf5e0b (patch)
treed88ec8ec148afc2019f5b01945da7ae39834049d /lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent519f40ba4e88df9a6c6742dda68f6208db99917f (diff)
Oops, remove these too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 08b702f4a3..dc862b38be 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -943,10 +943,8 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
case ISD::SHL:
case ISD::SRL:
case ISD::SRA:
- if (N2.getOpcode() == ISD::ZERO_EXTEND_INREG ||
- N2.getOpcode() == ISD::SIGN_EXTEND_INREG) {
+ if (N2.getOpcode() == ISD::SIGN_EXTEND_INREG)
return getNode(Opcode, VT, N1, N2.getOperand(0));
- }
break;
}
@@ -1042,10 +1040,8 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
case ISD::SRA_PARTS:
case ISD::SRL_PARTS:
case ISD::SHL_PARTS:
- if (N3.getOpcode() == ISD::ZERO_EXTEND_INREG ||
- N3.getOpcode() == ISD::SIGN_EXTEND_INREG) {
+ if (N3.getOpcode() == ISD::SIGN_EXTEND_INREG)
return getNode(Opcode, VT, N1, N2, N3.getOperand(0));
- }
break;
}