1
Fork 0

Remove some workarounds for missing inst legalizations

This commit is contained in:
bjorn3 2019-12-08 11:52:04 +01:00
parent 0cbcccf4c1
commit 88277f983a
3 changed files with 11 additions and 44 deletions

View file

@ -168,8 +168,6 @@ fn codegen_fn_content(fx: &mut FunctionCx<'_, '_, impl Backend>) {
}
}
let cond = trans_operand(fx, cond).load_scalar(fx);
// TODO HACK brz/brnz for i8/i16 is not yet implemented
let cond = fx.bcx.ins().uextend(types::I32, cond);
let target = fx.get_ebb(*target);
if *expected {
fx.bcx.ins().brnz(cond, target, &[]);