Skip to content

Commit 2aaec48

Browse files
committed
X86FixupBWInsts: Remove redundant code. NFC
1 parent 2574cab commit 2aaec48

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/X86/X86FixupBWInsts.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Register FixupBWInstPass::getSuperRegDestIfDead(MachineInstr *OrigMI) const {
248248
// Predecessors according to CFG: %bb.2 %bb.1
249249
// %ax = KILL %ax, implicit killed %eax
250250
// RET 0, %ax
251-
unsigned Opc = OrigMI->getOpcode(); (void)Opc;
251+
unsigned Opc = OrigMI->getOpcode();
252252
// These are the opcodes currently known to work with the code below, if
253253
// something // else will be added we need to ensure that new opcode has the
254254
// same properties.
@@ -261,8 +261,6 @@ Register FixupBWInstPass::getSuperRegDestIfDead(MachineInstr *OrigMI) const {
261261
if (!MO.isReg())
262262
continue;
263263

264-
assert((MO.isDef() || MO.isUse()) && "Expected Def or Use only!");
265-
266264
if (MO.isDef() && TRI->isSuperRegisterEq(OrigDestReg, MO.getReg()))
267265
IsDefined = true;
268266

0 commit comments

Comments
 (0)