[llvm] r313228 - [SLPVectorizer] Prefer auto over explicit type for VL0, NFCI.
Dinar Temirbulatov via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 13 21:28:35 PDT 2017
Author: dinar
Date: Wed Sep 13 21:28:35 2017
New Revision: 313228
URL: http://llvm.org/viewvc/llvm-project?rev=313228&view=rev
Log:
[SLPVectorizer] Prefer auto over explicit type for VL0, NFCI.
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=313228&r1=313227&r2=313228&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Wed Sep 13 21:28:35 2017
@@ -1459,7 +1459,7 @@ void BoUpSLP::buildTree_rec(ArrayRef<Val
// Check that all of the users of the scalars that we want to vectorize are
// schedulable.
- Instruction *VL0 = cast<Instruction>(S.OpValue);
+ auto *VL0 = cast<Instruction>(S.OpValue);
BasicBlock *BB = VL0->getParent();
if (!DT->isReachableFromEntry(BB)) {
More information about the llvm-commits
mailing list