Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address review comments.
  • Loading branch information
Leon Clark committed Jul 8, 2025
commit 016e9a5b5e29a6b7a3c19736d227e3223fd75a85
6 changes: 3 additions & 3 deletions llvm/lib/Transforms/Vectorize/VectorCombine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3722,12 +3722,12 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
return std::nullopt;

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

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

for (int Index : Mask) {
if (Index >= 0) {
Expand Down