[llvm] r187771 - Simplify code slightly. No functional change.
Craig Topper
craig.topper at gmail.com
Mon Aug 5 21:12:41 PDT 2013
Author: ctopper
Date: Mon Aug 5 23:12:40 2013
New Revision: 187771
URL: http://llvm.org/viewvc/llvm-project?rev=187771&view=rev
Log:
Simplify code slightly. No functional change.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=187771&r1=187770&r2=187771&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Mon Aug 5 23:12:40 2013
@@ -11298,8 +11298,7 @@ static SDValue LowerINTRINSIC_WO_CHAIN(S
X86CC = X86::COND_E;
break;
}
- SmallVector<SDValue, 5> NewOps;
- NewOps.append(Op->op_begin()+1, Op->op_end());
+ SmallVector<SDValue, 5> NewOps(Op->op_begin()+1, Op->op_end());
SDVTList VTs = DAG.getVTList(Op.getValueType(), MVT::i32);
SDValue PCMP = DAG.getNode(Opcode, dl, VTs, NewOps.data(), NewOps.size());
SDValue SetCC = DAG.getNode(X86ISD::SETCC, dl, MVT::i8,
@@ -11316,8 +11315,7 @@ static SDValue LowerINTRINSIC_WO_CHAIN(S
else
Opcode = X86ISD::PCMPESTRI;
- SmallVector<SDValue, 5> NewOps;
- NewOps.append(Op->op_begin()+1, Op->op_end());
+ SmallVector<SDValue, 5> NewOps(Op->op_begin()+1, Op->op_end());
SDVTList VTs = DAG.getVTList(Op.getValueType(), MVT::i32);
return DAG.getNode(Opcode, dl, VTs, NewOps.data(), NewOps.size());
}
More information about the llvm-commits
mailing list