diff options
author | Chris Lattner <sabre@nondot.org> | 2008-12-24 00:11:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-12-24 00:11:37 +0000 |
commit | 4328708bad5808f92bb8bceb358eb04154fcca52 (patch) | |
tree | cddc104c89352cc55625133d6eb24af080d28dfb /lib | |
parent | 7c7bc722ecdeec365074cac4bdb9e2679c02177f (diff) | |
download | external_llvm-4328708bad5808f92bb8bceb358eb04154fcca52.zip external_llvm-4328708bad5808f92bb8bceb358eb04154fcca52.tar.gz external_llvm-4328708bad5808f92bb8bceb358eb04154fcca52.tar.bz2 |
indentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index e922943..7c92e80 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -5031,15 +5031,14 @@ SDValue X86TargetLowering::LowerSETCC(SDValue Op, SelectionDAG &DAG) { bool isFP = Op.getOperand(1).getValueType().isFloatingPoint(); unsigned X86CC; - if (translateX86CC(cast<CondCodeSDNode>(CC)->get(), isFP, X86CC, - Op0, Op1, DAG)) { - Cond = DAG.getNode(X86ISD::CMP, MVT::i32, Op0, Op1); - return DAG.getNode(X86ISD::SETCC, MVT::i8, - DAG.getConstant(X86CC, MVT::i8), Cond); - } - - assert(0 && "Illegal SetCC!"); - return SDValue(); + if (!translateX86CC(cast<CondCodeSDNode>(CC)->get(), isFP, X86CC, + Op0, Op1, DAG)) + assert(0 && "Illegal SetCC!"); + + + Cond = DAG.getNode(X86ISD::CMP, MVT::i32, Op0, Op1); + return DAG.getNode(X86ISD::SETCC, MVT::i8, + DAG.getConstant(X86CC, MVT::i8), Cond); } SDValue X86TargetLowering::LowerVSETCC(SDValue Op, SelectionDAG &DAG) { |