Skip to content

Commit 0204402

Browse files
committed
address PR
1 parent 36b4edd commit 0204402

File tree

3 files changed

+1278
-3172
lines changed

3 files changed

+1278
-3172
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5882,8 +5882,8 @@ AMDGPUInstructionSelector::selectVOP3PMadMixModsImpl(MachineOperand &Root,
58825882
// G_TRUNC. G_TRUNC to 16-bits would have a destination in RC VGPR_16, which
58835883
// is not compatible with MadMix instructions
58845884
Register PeekSrc = Src;
5885-
if (Subtarget->useRealTrue16Insts() &&
5886-
mi_match(PeekSrc, *MRI, m_GTrunc(m_Reg(PeekSrc))))
5885+
if (mi_match(PeekSrc, *MRI, m_GTrunc(m_Reg(PeekSrc))) &&
5886+
MRI->getType(PeekSrc).getSizeInBits() == 32)
58875887
Src = PeekSrc;
58885888

58895889
Matched = true;

0 commit comments

Comments
 (0)