[SLP] clean some formats

llvm-svn: 327433
This commit is contained in:
Haicheng Wu 2018-03-13 18:44:19 +00:00
parent 252165b27a
commit aee0af3e23
1 changed files with 3 additions and 3 deletions

View File

@ -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(