eliminate some ops if they have an undef RHS

llvm-svn: 34908
This commit is contained in:
Chris Lattner 2007-03-04 20:01:46 +00:00
parent 1e04147240
commit 362621c7ae
1 changed files with 2 additions and 0 deletions

View File

@ -1325,6 +1325,8 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
if (N2.getOpcode() == ISD::UNDEF) {
switch (Opcode) {
case ISD::ADD:
case ISD::ADDC:
case ISD::ADDE:
case ISD::SUB:
case ISD::FADD:
case ISD::FSUB: