@@ -8263,32 +8263,32 @@ static Value *getMaskVecValue(CodeGenFunction &CGF, Value *Mask,
8263
8263
}
8264
8264
8265
8265
static Value *EmitX86MaskedStore (CodeGenFunction &CGF,
8266
- ArrayRef <Value *> Ops,
8266
+ SmallVectorImpl <Value *> & Ops,
8267
8267
unsigned Align) {
8268
8268
// Cast the pointer to right type.
8269
- Value * Ptr = CGF.Builder .CreateBitCast (Ops[0 ],
8269
+ Ops[ 0 ] = CGF.Builder .CreateBitCast (Ops[0 ],
8270
8270
llvm::PointerType::getUnqual (Ops[1 ]->getType ()));
8271
8271
8272
8272
Value *MaskVec = getMaskVecValue (CGF, Ops[2 ],
8273
8273
Ops[1 ]->getType ()->getVectorNumElements ());
8274
8274
8275
- return CGF.Builder .CreateMaskedStore (Ops[1 ], Ptr , Align, MaskVec);
8275
+ return CGF.Builder .CreateMaskedStore (Ops[1 ], Ops[ 0 ] , Align, MaskVec);
8276
8276
}
8277
8277
8278
8278
static Value *EmitX86MaskedLoad (CodeGenFunction &CGF,
8279
- ArrayRef <Value *> Ops, unsigned Align) {
8279
+ SmallVectorImpl <Value *> & Ops, unsigned Align) {
8280
8280
// Cast the pointer to right type.
8281
- Value * Ptr = CGF.Builder .CreateBitCast (Ops[0 ],
8281
+ Ops[ 0 ] = CGF.Builder .CreateBitCast (Ops[0 ],
8282
8282
llvm::PointerType::getUnqual (Ops[1 ]->getType ()));
8283
8283
8284
8284
Value *MaskVec = getMaskVecValue (CGF, Ops[2 ],
8285
8285
Ops[1 ]->getType ()->getVectorNumElements ());
8286
8286
8287
- return CGF.Builder .CreateMaskedLoad (Ptr , Align, MaskVec, Ops[1 ]);
8287
+ return CGF.Builder .CreateMaskedLoad (Ops[ 0 ] , Align, MaskVec, Ops[1 ]);
8288
8288
}
8289
8289
8290
8290
static Value *EmitX86MaskLogic (CodeGenFunction &CGF, Instruction::BinaryOps Opc,
8291
- unsigned NumElts, ArrayRef <Value *> Ops,
8291
+ unsigned NumElts, SmallVectorImpl <Value *> & Ops,
8292
8292
bool InvertLHS = false ) {
8293
8293
Value *LHS = getMaskVecValue (CGF, Ops[0 ], NumElts);
8294
8294
Value *RHS = getMaskVecValue (CGF, Ops[1 ], NumElts);
@@ -8301,7 +8301,7 @@ static Value *EmitX86MaskLogic(CodeGenFunction &CGF, Instruction::BinaryOps Opc,
8301
8301
}
8302
8302
8303
8303
static Value *EmitX86SubVectorBroadcast (CodeGenFunction &CGF,
8304
- ArrayRef <Value *> Ops,
8304
+ SmallVectorImpl <Value *> & Ops,
8305
8305
llvm::Type *DstTy,
8306
8306
unsigned SrcSizeInBits,
8307
8307
unsigned Align) {
0 commit comments