Skip to content

Commit fe2623c

Browse files
committed
Review Comments 3
Change-Id: I666a35830bc431b763474dcbb2d7ecae58768a45
1 parent a8f8f42 commit fe2623c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22698,9 +22698,9 @@ bool SLPVectorizerPass::vectorizeChainsInBlock(BasicBlock *BB, BoUpSLP &R) {
2269822698

2269922699
// Sort on ExtractElementInsts primarily by vector operands. Prefer
2270022700
// program order of the vector operands.
22701-
if (E1->getVectorOperand() != E2->getVectorOperand()) {
22702-
const auto *V1 = dyn_cast<Instruction>(E1->getVectorOperand());
22703-
const auto *V2 = dyn_cast<Instruction>(E2->getVectorOperand());
22701+
const auto *V1 = dyn_cast<Instruction>(E1->getVectorOperand());
22702+
const auto *V2 = dyn_cast<Instruction>(E2->getVectorOperand());
22703+
if (V1 != V2) {
2270422704
if (!V1 || !V2)
2270522705
continue;
2270622706
if (V1->getParent() != V2->getParent())

0 commit comments

Comments
 (0)