GloblaISel: Remove unreachable condition

Fixes bug 46882
This commit is contained in:
Matt Arsenault 2020-07-29 13:31:59 -04:00
parent 0c4ea27510
commit 90b76dac57
1 changed files with 1 additions and 2 deletions

View File

@ -1614,8 +1614,7 @@ LegalizerHelper::widenScalarExtract(MachineInstr &MI, unsigned TypeIdx,
if (WideTy.getSizeInBits() > SrcTy.getSizeInBits()) {
Src = MIRBuilder.buildAnyExt(WideTy, Src);
ShiftTy = WideTy;
} else if (WideTy.getSizeInBits() > SrcTy.getSizeInBits())
return UnableToLegalize;
}
auto LShr = MIRBuilder.buildLShr(
ShiftTy, Src, MIRBuilder.buildConstant(ShiftTy, Offset));