forked from OSchip/llvm-project
parent
252165b27a
commit
aee0af3e23
|
@ -3534,7 +3534,7 @@ BoUpSLP::vectorizeTree(ExtraValueToDebugLocsMap &ExternallyUsedValues) {
|
|||
Ex = extend(ScalarRoot, Ex, Scalar->getType());
|
||||
CSEBlocks.insert(cast<Instruction>(User)->getParent());
|
||||
User->replaceUsesOfWith(Scalar, Ex);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Builder.SetInsertPoint(&F->getEntryBlock().front());
|
||||
Value *Ex = Builder.CreateExtractElement(Vec, Lane);
|
||||
|
@ -4013,7 +4013,7 @@ void BoUpSLP::BlockScheduling::calculateDependencies(ScheduleData *SD,
|
|||
// i0 to i3, we have transitive dependencies from i0 to i6,i7,i8
|
||||
// and we can abort this loop at i6.
|
||||
if (DistToSrc >= 2 * MaxMemDepDistance)
|
||||
break;
|
||||
break;
|
||||
DistToSrc++;
|
||||
}
|
||||
}
|
||||
|
@ -4765,7 +4765,7 @@ bool SLPVectorizerPass::tryToVectorizeList(ArrayRef<Value *> VL, BoUpSLP &R,
|
|||
Instruction *Inst = dyn_cast<Instruction>(V);
|
||||
|
||||
if (!Inst)
|
||||
return false;
|
||||
return false;
|
||||
if (Inst->getOpcode() != Opcode0) {
|
||||
R.getORE()->emit([&]() {
|
||||
return OptimizationRemarkMissed(
|
||||
|
|
Loading…
Reference in New Issue