Skip to content

Commit 6b7f8e9

Browse files
committed
fixup! fixup! Address review comments
1 parent 32d8de5 commit 6b7f8e9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/CodeGen/InterleavedAccessPass.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,8 @@ static Value *getMask(Value *WideMask, unsigned Factor) {
644644
SmallVector<Instruction *, 8> DeadInsts;
645645
if (getVectorInterleaveFactor(IMI, Operands, DeadInsts)) {
646646
assert(!Operands.empty());
647-
Value *FirstOp = Operands[0];
648-
if (Operands.size() == Factor &&
649-
llvm::all_of(Operands, [=](Value *Op) { return Op == FirstOp; }))
650-
return FirstOp;
647+
if (Operands.size() == Factor && llvm::all_equal(Operands))
648+
return Operands[0];
651649
}
652650
}
653651
if (match(WideMask, m_AllOnes()))

0 commit comments

Comments
 (0)