Skip to content

Commit 8587628

Browse files
committed
restoring deleted assert
1 parent dc0089e commit 8587628

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,8 @@ void SIPreEmitPeephole::performF32Unpacking(MachineInstr &I) {
665665
MachineOperand DstOp = I.getOperand(0);
666666

667667
uint16_t UnpackedOpcode = mapToUnpackedOpcode(I);
668+
assert(UnpackedOpcode != std::numeric_limits<uint16_t>::max() &&
669+
"Unsupported Opcode");
668670
// V_MOV_B32 does not support source modifiers. Without source modifiers, we
669671
// cannot be faithful to the packed instruction semantics in few cases. This
670672
// is true when the packed instruction has NEG and NEG_HI modifiers. We should

0 commit comments

Comments
 (0)