From: Matt Arsenault Date: Fri, 24 Jan 2020 23:06:30 +0000 (-0500) Subject: GlobalISel: Remove check for illegal MIR X-Git-Tag: llvmorg-12-init~15620 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7464e8d6ad3c614f739c770896eb6a0564d9feb8;p=platform%2Fupstream%2Fllvm.git GlobalISel: Remove check for illegal MIR The verifier will catch this. --- diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp index cd5419f..ef1b74e 100644 --- a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp +++ b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp @@ -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