GlobalISel: Remove check for illegal MIR

The verifier will catch this.
This commit is contained in:
Matt Arsenault 2020-01-24 18:06:30 -05:00 committed by Matt Arsenault
parent 4697e701b8
commit 7464e8d6ad
1 changed files with 0 additions and 2 deletions

View File

@ -1128,8 +1128,6 @@ LegalizerHelper::LegalizeResult LegalizerHelper::narrowScalar(MachineInstr &MI,
if (TypeIdx != 0)
return UnableToLegalize;
if (!MI.getOperand(2).isImm())
return UnableToLegalize;
int64_t SizeInBits = MI.getOperand(2).getImm();
// So long as the new type has more bits than the bits we're extending we