From e2d706b2022e3dc90b34fcbed9e324573e590b12 Mon Sep 17 00:00:00 2001 From: Dinar Temirbulatov Date: Thu, 14 Sep 2017 04:28:35 +0000 Subject: [PATCH] [SLPVectorizer] Prefer auto over explicit type for VL0, NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313228 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index dd8c4161e8e..9e8c4b6799a 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/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)) { -- 2.40.0