diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-07-17 09:35:03 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-07-17 09:35:03 +0000 |
commit | 7ac3efacc0c608895cc182c133097aa469ece049 (patch) | |
tree | fc43fcee18a0bdd59a1b7796e54aa0bbd69e4de4 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | 5ba90c79794a2e83cd4874fc649487340ec2fded (diff) | |
download | bcm5719-llvm-7ac3efacc0c608895cc182c133097aa469ece049.tar.gz bcm5719-llvm-7ac3efacc0c608895cc182c133097aa469ece049.zip |
Remove unnecessary cast. NFCI.
llvm-svn: 308166
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index d9b8d9d38c2..dcbcab459a6 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -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 |