diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-28 18:29:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-28 18:29:47 +0000 |
commit | 883a52de66da854de158b602952d8242acddcb48 (patch) | |
tree | ade907581a7ae5339f5bd02fb26f96058b38e4c1 | |
parent | 7aeeac75f5a6ab4506e8eef2e13ef254a577fa77 (diff) | |
download | external_llvm-883a52de66da854de158b602952d8242acddcb48.zip external_llvm-883a52de66da854de158b602952d8242acddcb48.tar.gz external_llvm-883a52de66da854de158b602952d8242acddcb48.tar.bz2 |
Fix CodeGen/Generic/2006-06-28-SimplifySetCCCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28965 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 41c1193..f0c61e7 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -243,12 +243,10 @@ ISD::CondCode ISD::getSetCCAndOperation(ISD::CondCode Op1, ISD::CondCode Op2, if (isInteger) { switch (Result) { default: break; - case ISD::SETUO: // e.g. SETUGT & SETULT - Result = ISD::SETFALSE; - break; - case ISD::SETUEQ: // e.g. SETUGE & SETULE - Result = ISD::SETEQ; - break; + case ISD::SETUO : Result = ISD::SETFALSE; break; // SETUGT & SETULT + case ISD::SETUEQ: Result = ISD::SETEQ ; break; // SETUGE & SETULE + case ISD::SETOLT: Result = ISD::SETULT ; break; // SETULT & SETNE + case ISD::SETOGT: Result = ISD::SETUGT ; break; // SETUGT & SETNE } } |