Skip to content

Commit 6ca4bfa

Browse files
author
Leon Clark
committed
Address review comments.
1 parent 070b6f8 commit 6ca4bfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3514,12 +3514,12 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
35143514
return std::nullopt;
35153515

35163516
// Ignore shufflevector instructions that have no uses.
3517-
if (!Shuffle->hasNUsesOrMore(1u))
3517+
if (Shuffle->use_empty())
35183518
continue;
35193519

35203520
// Find the min and max indices used by the shufflevector instruction.
3521-
auto *Op0Ty = cast<FixedVectorType>(Op0->getType());
3522-
auto NumElems = int(Op0Ty->getNumElements());
3521+
FixedVectorType *Op0Ty = cast<FixedVectorType>(Op0->getType());
3522+
int NumElems = static_cast<int>(Op0Ty->getNumElements());
35233523

35243524
for (int Index : Mask) {
35253525
if (Index >= 0) {

0 commit comments

Comments
 (0)