From 710b3d5ea1ecf068059c7b53d329002b28f63cd3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 28 Jun 2006 18:29:47 +0000 Subject: Fix CodeGen/Generic/2006-06-28-SimplifySetCCCrash.ll llvm-svn: 28965 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 41c1193b027..f0c61e77a94 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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 } } -- cgit v1.2.3