[llvm] r327433 - [SLP] clean some formats
Haicheng Wu via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 13 11:44:19 PDT 2018
Author: haicheng
Date: Tue Mar 13 11:44:19 2018
New Revision: 327433
URL: http://llvm.org/viewvc/llvm-project?rev=327433&view=rev
Log:
[SLP] clean some formats
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=327433&r1=327432&r2=327433&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Tue Mar 13 11:44:19 2018
@@ -3534,7 +3534,7 @@ BoUpSLP::vectorizeTree(ExtraValueToDebug
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::calculate
// 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::tryToVectorizeLi
Instruction *Inst = dyn_cast<Instruction>(V);
if (!Inst)
- return false;
+ return false;
if (Inst->getOpcode() != Opcode0) {
R.getORE()->emit([&]() {
return OptimizationRemarkMissed(
More information about the llvm-commits
mailing list