Skip to content

Commit a8f8f42

Browse files
committed
Review comments 2
Change-Id: I8b15558af0c8b23ff8c769d1a01323a87068f6ef
1 parent 0b5d6c0 commit a8f8f42

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22699,10 +22699,8 @@ bool SLPVectorizerPass::vectorizeChainsInBlock(BasicBlock *BB, BoUpSLP &R) {
2269922699
// Sort on ExtractElementInsts primarily by vector operands. Prefer
2270022700
// program order of the vector operands.
2270122701
if (E1->getVectorOperand() != E2->getVectorOperand()) {
22702-
const Instruction *V1 =
22703-
dyn_cast<Instruction>(E1->getVectorOperand());
22704-
const Instruction *V2 =
22705-
dyn_cast<Instruction>(E2->getVectorOperand());
22702+
const auto *V1 = dyn_cast<Instruction>(E1->getVectorOperand());
22703+
const auto *V2 = dyn_cast<Instruction>(E2->getVectorOperand());
2270622704
if (!V1 || !V2)
2270722705
continue;
2270822706
if (V1->getParent() != V2->getParent())

0 commit comments

Comments
 (0)