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 | 7cdc3c8ad208d9655be542fc8b082c4457af4b6e (patch) | |
tree | 2607393bf8389b129d0bf65fcd64709cd515c4d5 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | cb9a354d1323bed4043e716503226678ae520f53 (diff) | |
download | external_llvm-7cdc3c8ad208d9655be542fc8b082c4457af4b6e.tar.gz external_llvm-7cdc3c8ad208d9655be542fc8b082c4457af4b6e.tar.bz2 external_llvm-7cdc3c8ad208d9655be542fc8b082c4457af4b6e.zip |
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 d22a65d2ff..189985f447 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"; |