diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-03-04 20:01:46 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-03-04 20:01:46 +0000 |
| commit | 362621c7ae34631096af78e07a78bc4e339b6f3c (patch) | |
| tree | 40902b8d1abc2af03d174382c1955e484a800824 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
| parent | 1e041472407f726904238ac6e9b837655682945b (diff) | |
| download | bcm5719-llvm-362621c7ae34631096af78e07a78bc4e339b6f3c.tar.gz bcm5719-llvm-362621c7ae34631096af78e07a78bc4e339b6f3c.zip | |
eliminate some ops if they have an undef RHS
llvm-svn: 34908
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 2679a8ccd8a..0de71203e4d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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: |

