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 | 175415e116feef0def0f7c084cca3646a403412b (patch) | |
tree | 6f2dca3bfa10d2d17afd957080e7b1c0e6dcc757 | |
parent | 8f3acf87a24132df490a069f035dce8d0cf00c03 (diff) | |
download | external_llvm-175415e116feef0def0f7c084cca3646a403412b.zip external_llvm-175415e116feef0def0f7c084cca3646a403412b.tar.gz external_llvm-175415e116feef0def0f7c084cca3646a403412b.tar.bz2 |
eliminate some ops if they have an undef RHS
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34908 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 2679a8c..0de7120 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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: |