[llvm] 7464e8d - GlobalISel: Remove check for illegal MIR
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 15:38:07 PST 2020
Author: Matt Arsenault
Date: 2020-02-05T18:37:17-05:00
New Revision: 7464e8d6ad3c614f739c770896eb6a0564d9feb8
URL: https://github.com/llvm/llvm-project/commit/7464e8d6ad3c614f739c770896eb6a0564d9feb8
DIFF: https://github.com/llvm/llvm-project/commit/7464e8d6ad3c614f739c770896eb6a0564d9feb8.diff
LOG: GlobalISel: Remove check for illegal MIR
The verifier will catch this.
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
index cd5419f323a6..ef1b74e8ad12 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
More information about the llvm-commits
mailing list