Fix clif ir writing for simd_gather
This commit is contained in:
parent
c6ad186298
commit
219cdbaac0
2 changed files with 5 additions and 0 deletions
|
|
@ -305,6 +305,9 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
|
|||
let source_info = bb_data.terminator().source_info;
|
||||
fx.set_debug_loc(source_info);
|
||||
|
||||
let _print_guard =
|
||||
crate::PrintOnPanic(|| format!("terminator {:?}", bb_data.terminator().kind));
|
||||
|
||||
match &bb_data.terminator().kind {
|
||||
TerminatorKind::Goto { target } => {
|
||||
if let TerminatorKind::Return = fx.mir[*target].terminator().kind {
|
||||
|
|
|
|||
|
|
@ -840,6 +840,8 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
|
|||
fx.bcx.seal_block(next);
|
||||
fx.bcx.switch_to_block(next);
|
||||
|
||||
fx.bcx.ins().nop();
|
||||
|
||||
ret.place_lane(fx, lane_idx)
|
||||
.write_cvalue(fx, CValue::by_val(res_lane, ret_lane_layout));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue