]> granicus.if.org Git - llvm/commitdiff
Remove unnecessary cast. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 17 Jul 2017 09:35:03 +0000 (09:35 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 17 Jul 2017 09:35:03 +0000 (09:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308166 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index d9b8d9d38c2526c1eb150e0e7179b70763035b7a..dcbcab459a6be9c3c61c5f7f56bb05b6a01b9f68 100644 (file)
@@ -1212,7 +1212,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>(VL[0]);
-  BasicBlock *BB = cast<Instruction>(VL0)->getParent();
+  BasicBlock *BB = VL0->getParent();
 
   if (!DT->isReachableFromEntry(BB)) {
     // Don't go into unreachable blocks. They may contain instructions with