Fold fcvt_low_from_uinit into previously existing clif instructions

This commit is contained in:
Johnnie Birch
2021-07-08 07:15:54 -07:00
parent 6dd2df4fb3
commit d8e813204e
6 changed files with 67 additions and 79 deletions

View File

@@ -1780,7 +1780,8 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
}
Operator::F64x2ConvertLowI32x4U => {
let a = pop1_with_bitcast(state, I32X4, builder);
state.push1(builder.ins().fcvt_low_from_uint(F64X2, a));
let widened_a = builder.ins().uwiden_low(a);
state.push1(builder.ins().fcvt_from_uint(F64X2, widened_a));
}
Operator::F64x2PromoteLowF32x4 => {
let a = pop1_with_bitcast(state, F32X4, builder);