[llvm] r308166 - Remove unnecessary cast. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 02:35:03 PDT 2017
Author: rksimon
Date: Mon Jul 17 02:35:03 2017
New Revision: 308166
URL: http://llvm.org/viewvc/llvm-project?rev=308166&view=rev
Log:
Remove unnecessary cast. NFCI.
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=308166&r1=308165&r2=308166&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Mon Jul 17 02:35:03 2017
@@ -1212,7 +1212,7 @@ void BoUpSLP::buildTree_rec(ArrayRef<Val
// 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
More information about the llvm-commits
mailing list