Skip to content

Commit 9921cdc

Browse files
committed
check t16 in dpp inst creator
1 parent a955426 commit 9921cdc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ MachineInstr *GCNDPPCombine::createDPPInst(MachineInstr &OrigMI,
215215

216216
bool HasVOP3DPP = ST->hasVOP3DPP();
217217
auto OrigOp = OrigMI.getOpcode();
218+
if (AMDGPU::isTrue16Inst(OrigOp)) {
219+
LLVM_DEBUG(
220+
dbgs() << " failed: Did not expect any 16-bit uses of dpp values\n");
221+
return nullptr;
222+
}
218223
auto DPPOp = getDPPOp(OrigOp, IsShrinkable);
219224
if (DPPOp == -1) {
220225
LLVM_DEBUG(dbgs() << " failed: no DPP opcode\n");

0 commit comments

Comments
 (0)