forked from OSchip/llvm-project
parent
0c4ea27510
commit
90b76dac57
|
@ -1614,8 +1614,7 @@ LegalizerHelper::widenScalarExtract(MachineInstr &MI, unsigned TypeIdx,
|
||||||
if (WideTy.getSizeInBits() > SrcTy.getSizeInBits()) {
|
if (WideTy.getSizeInBits() > SrcTy.getSizeInBits()) {
|
||||||
Src = MIRBuilder.buildAnyExt(WideTy, Src);
|
Src = MIRBuilder.buildAnyExt(WideTy, Src);
|
||||||
ShiftTy = WideTy;
|
ShiftTy = WideTy;
|
||||||
} else if (WideTy.getSizeInBits() > SrcTy.getSizeInBits())
|
}
|
||||||
return UnableToLegalize;
|
|
||||||
|
|
||||||
auto LShr = MIRBuilder.buildLShr(
|
auto LShr = MIRBuilder.buildLShr(
|
||||||
ShiftTy, Src, MIRBuilder.buildConstant(ShiftTy, Offset));
|
ShiftTy, Src, MIRBuilder.buildConstant(ShiftTy, Offset));
|
||||||
|
|
Loading…
Reference in New Issue