Remove unnecessary cast. NFCI.

llvm-svn: 308166
This commit is contained in:
Simon Pilgrim
2017-07-17 09:35:03 +00:00
parent 5ba90c7979
commit 7ac3efacc0

View 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