Skip to content

Commit 016e9a5

Browse files
author
Leon Clark
committed
Address review comments.
1 parent 9518894 commit 016e9a5

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
@@ -3722,12 +3722,12 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
37223722
return std::nullopt;
37233723

37243724
// Ignore shufflevector instructions that have no uses.
3725-
if (!Shuffle->hasNUsesOrMore(1u))
3725+
if (Shuffle->use_empty())
37263726
continue;
37273727

37283728
// Find the min and max indices used by the shufflevector instruction.
3729-
auto *Op0Ty = cast<FixedVectorType>(Op0->getType());
3730-
auto NumElems = int(Op0Ty->getNumElements());
3729+
FixedVectorType *Op0Ty = cast<FixedVectorType>(Op0->getType());
3730+
int NumElems = static_cast<int>(Op0Ty->getNumElements());
37313731

37323732
for (int Index : Mask) {
37333733
if (Index >= 0) {

0 commit comments

Comments
 (0)