OSDN Git Service

[SLPVectorizer] Prefer auto over explicit type for VL0, NFCI.
authorDinar Temirbulatov <dtemirbulatov@gmail.com>
Thu, 14 Sep 2017 04:28:35 +0000 (04:28 +0000)
committerDinar Temirbulatov <dtemirbulatov@gmail.com>
Thu, 14 Sep 2017 04:28:35 +0000 (04:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313228 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index dd8c416..9e8c4b6 100644 (file)
@@ -1459,7 +1459,7 @@ void BoUpSLP::buildTree_rec(ArrayRef<Value *> VL, unsigned Depth,
 
   // 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)) {