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 9518894 commit 016e9a5Copy full SHA for 016e9a5
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -3722,12 +3722,12 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3722
return std::nullopt;
3723
3724
// Ignore shufflevector instructions that have no uses.
3725
- if (!Shuffle->hasNUsesOrMore(1u))
+ if (Shuffle->use_empty())
3726
continue;
3727
3728
// Find the min and max indices used by the shufflevector instruction.
3729
- auto *Op0Ty = cast<FixedVectorType>(Op0->getType());
3730
- auto NumElems = int(Op0Ty->getNumElements());
+ FixedVectorType *Op0Ty = cast<FixedVectorType>(Op0->getType());
+ int NumElems = static_cast<int>(Op0Ty->getNumElements());
3731
3732
for (int Index : Mask) {
3733
if (Index >= 0) {
0 commit comments