We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 070b6f8 commit 6ca4bfaCopy full SHA for 6ca4bfa
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -3514,12 +3514,12 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3514
return std::nullopt;
3515
3516
// Ignore shufflevector instructions that have no uses.
3517
- if (!Shuffle->hasNUsesOrMore(1u))
+ if (Shuffle->use_empty())
3518
continue;
3519
3520
// Find the min and max indices used by the shufflevector instruction.
3521
- auto *Op0Ty = cast<FixedVectorType>(Op0->getType());
3522
- auto NumElems = int(Op0Ty->getNumElements());
+ FixedVectorType *Op0Ty = cast<FixedVectorType>(Op0->getType());
+ int NumElems = static_cast<int>(Op0Ty->getNumElements());
3523
3524
for (int Index : Mask) {
3525
if (Index >= 0) {
0 commit comments