Skip to content

Commit

Permalink
[SLPVectorizer] Prefer auto over explicit type for VL0, NFCI.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313228 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dtemirbulatov committed Sep 14, 2017
1 parent 2ca4715 commit e2d706b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Transforms/Vectorize/SLPVectorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit e2d706b

Please sign in to comment.