diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-11-21 02:03:52 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-11-21 02:03:52 +0000 |
commit | 5fc7e5c28a72511a17e5f84ef2b6327b8b8862e0 (patch) | |
tree | 2607393bf8389b129d0bf65fcd64709cd515c4d5 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | e92c16dd00c8a0fe5c3a801f956d4ae20b2878cf (diff) | |
download | external_llvm-5fc7e5c28a72511a17e5f84ef2b6327b8b8862e0.zip external_llvm-5fc7e5c28a72511a17e5f84ef2b6327b8b8862e0.tar.gz external_llvm-5fc7e5c28a72511a17e5f84ef2b6327b8b8862e0.tar.bz2 |
Implement the sadd_with_overflow intrinsic. This is converted into
"ISD::ADDO". ISD::ADDO is lowered into a target-independent form that does the
addition and then checks if the result is less than one of the operands. (If it
is, then there was an overflow.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index d22a65d..189985f 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -5151,8 +5151,7 @@ std::string SDNode::getOperationName(const SelectionDAG *G) const { case ISD::CARRY_FALSE: return "carry_false"; case ISD::ADDC: return "addc"; case ISD::ADDE: return "adde"; - case ISD::SADDO: return "saddo"; - case ISD::UADDO: return "uaddo"; + case ISD::ADDO: return "addo"; case ISD::SUBC: return "subc"; case ISD::SUBE: return "sube"; case ISD::SHL_PARTS: return "shl_parts"; |