Remove some workarounds for missing inst legalizations
This commit is contained in:
parent
0cbcccf4c1
commit
88277f983a
3 changed files with 11 additions and 44 deletions
|
@ -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, &[]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue