Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ bool AMDGPUInstructionSelector::selectG_MERGE_VALUES(MachineInstr &MI) const {
LLT SrcTy = MRI->getType(MI.getOperand(1).getReg());

const unsigned SrcSize = SrcTy.getSizeInBits();
if (SrcSize < 32)
if (SrcSize < 16)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand why this is selectImpl. This is just a fancy way of failing? Is this incorrectly passing selection for non-true16 targets?

Copy link
Contributor Author

@broxigarchen broxigarchen Mar 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I double checked this. It seems this is never invoked when srcSize is smaller than 32.

we might just don't need this patch (test is also not relevant)

return selectImpl(MI, *CoverageInfo);

const DebugLoc &DL = MI.getDebugLoc();
Expand Down
Loading