forked from OSchip/llvm-project
eliminate some ops if they have an undef RHS
llvm-svn: 34908
This commit is contained in:
parent
1e04147240
commit
362621c7ae
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue