From df0b8438758478204156b74195787a9e2b35c23a Mon Sep 17 00:00:00 2001 From: Dinar Temirbulatov Date: Thu, 14 Sep 2017 04:28:35 +0000 Subject: [SLPVectorizer] Prefer auto over explicit type for VL0, NFCI. llvm-svn: 313228 --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp') diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index dd8c4161e8e..9e8c4b6799a 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -1459,7 +1459,7 @@ void BoUpSLP::buildTree_rec(ArrayRef VL, unsigned Depth, // Check that all of the users of the scalars that we want to vectorize are // schedulable. - Instruction *VL0 = cast(S.OpValue); + auto *VL0 = cast(S.OpValue); BasicBlock *BB = VL0->getParent(); if (!DT->isReachableFromEntry(BB)) { -- cgit v1.2.3