git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171001
91177308-0d34-0410-b5e6-
96231b3b80d8
// elements, times the vector width.
unsigned Cost = 0;
// elements, times the vector width.
unsigned Cost = 0;
- if (RetTy->isVoidTy() || VF != 1) {
+ if (!RetTy->isVoidTy() && VF != 1) {
unsigned InsCost = VTTI->getVectorInstrCost(Instruction::InsertElement,
VectorTy);
unsigned ExtCost = VTTI->getVectorInstrCost(Instruction::ExtractElement,
unsigned InsCost = VTTI->getVectorInstrCost(Instruction::InsertElement,
VectorTy);
unsigned ExtCost = VTTI->getVectorInstrCost(Instruction::ExtractElement,