Skip to content

Commit 1dc4db8

Browse files
authored
AMDGPU: Relax verifier for agpr/vgpr loads and stores (#158391)
1 parent c642e2a commit 1dc4db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5590,7 +5590,7 @@ bool SIInstrInfo::verifyInstruction(const MachineInstr &MI,
55905590
Data = nullptr;
55915591

55925592
if (ST.hasGFX90AInsts()) {
5593-
if (Dst && Data &&
5593+
if (Dst && Data && !Dst->isTied() && !Data->isTied() &&
55945594
(RI.isAGPR(MRI, Dst->getReg()) != RI.isAGPR(MRI, Data->getReg()))) {
55955595
ErrInfo = "Invalid register class: "
55965596
"vdata and vdst should be both VGPR or AGPR";

0 commit comments

Comments
 (0)