[llvm] r267377 - [X86] Replace a SmallVector used to pass 2 values to an ArrayRef parameter with a fixed size array. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 24 21:30:29 PDT 2016


Author: ctopper
Date: Sun Apr 24 23:30:29 2016
New Revision: 267377

URL: http://llvm.org/viewvc/llvm-project?rev=267377&view=rev
Log:
[X86] Replace a SmallVector used to pass 2 values to an ArrayRef parameter with a fixed size array. NFC

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=267377&r1=267376&r2=267377&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Apr 24 23:30:29 2016
@@ -18112,7 +18112,6 @@ static SDValue LowerINTRINSIC_W_CHAIN(SD
   }
   // ADC/ADCX/SBB
   case ADX: {
-    SmallVector<SDValue, 2> Results;
     SDVTList CFVTs = DAG.getVTList(Op->getValueType(0), MVT::Other);
     SDVTList VTs = DAG.getVTList(Op.getOperand(3)->getValueType(0), MVT::Other);
     SDValue GenCF = DAG.getNode(X86ISD::ADD, dl, CFVTs, Op.getOperand(2),
@@ -18125,8 +18124,7 @@ static SDValue LowerINTRINSIC_W_CHAIN(SD
     SDValue SetCC = DAG.getNode(X86ISD::SETCC, dl, MVT::i8,
                                 DAG.getConstant(X86::COND_B, dl, MVT::i8),
                                 Res.getValue(1));
-    Results.push_back(SetCC);
-    Results.push_back(Store);
+    SDValue Results[] = { SetCC, Store };
     return DAG.getMergeValues(Results, dl);
   }
   case COMPRESS_TO_MEM: {




More information about the llvm-commits mailing list