Skip to content

Commit 39cab1a

Browse files
authored
[AMDGPU] Add v2bf16 for opsel immediate folding (#82435)
This was previously enabled since v2bf16 was represented by v2f16. As of now it is NFC since we only have dot instructions which could use it, but currently folding is guarded by the hasDOTOpSelHazard().
1 parent 2236048 commit 39cab1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AMDGPU/SIFoldOperands.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,10 @@ bool SIFoldOperands::canUseImmWithOpSel(FoldCandidate &Fold) const {
219219
default:
220220
return false;
221221
case AMDGPU::OPERAND_REG_IMM_V2FP16:
222+
case AMDGPU::OPERAND_REG_IMM_V2BF16:
222223
case AMDGPU::OPERAND_REG_IMM_V2INT16:
223224
case AMDGPU::OPERAND_REG_INLINE_C_V2FP16:
225+
case AMDGPU::OPERAND_REG_INLINE_C_V2BF16:
224226
case AMDGPU::OPERAND_REG_INLINE_C_V2INT16:
225227
break;
226228
}

0 commit comments

Comments
 (0)