forked from OSchip/llvm-project
GlobalISel: Fix not failing on widening G_INSERT_VECTOR_ELT
This doesn't actually handled type idx 0, but was reporting Legalized on it. No test changes because nothing was trying to use this.
This commit is contained in:
parent
37e72f47a4
commit
e4f19d1dda
|
@ -2057,9 +2057,10 @@ LegalizerHelper::widenScalar(MachineInstr &MI, unsigned TypeIdx, LLT WideTy) {
|
|||
// TODO: Probably should be zext
|
||||
widenScalarSrc(MI, WideTy, 3, TargetOpcode::G_SEXT);
|
||||
Observer.changedInstr(MI);
|
||||
return Legalized;
|
||||
}
|
||||
|
||||
return Legalized;
|
||||
return UnableToLegalize;
|
||||
}
|
||||
case TargetOpcode::G_FADD:
|
||||
case TargetOpcode::G_FMUL:
|
||||
|
|
Loading…
Reference in New Issue