Skip to content

Commit 472f856

Browse files
committed
[AMDGPU] Tweak VOP3_INTERP16 profile
Set the output register class based on the output type, instead of hard-coding VGPR_32. I think this is more correct. It doesn't make any difference at the moment because we use the same class for 16- and 32-bit results, but it might in future if we make more use of true 16-bit register classes. Differential Revision: https://reviews.llvm.org/D102622
1 parent cd73ce4 commit 472f856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/VOP3Instructions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class VOP3_INTERP16 <list<ValueType> ArgVT> : VOPProfile<ArgVT> {
264264
let HasOMod = !ne(DstVT.Value, f16.Value);
265265
let HasHigh = 1;
266266

267-
let Outs64 = (outs VGPR_32:$vdst);
267+
let Outs64 = (outs DstRC.RegClass:$vdst);
268268
let Ins64 = getInterp16Ins<HasSrc2, HasOMod, Src0Mod, Src2Mod>.ret;
269269
let Asm64 = getInterp16Asm<HasSrc2, HasOMod>.ret;
270270
}

0 commit comments

Comments
 (0)