From f6cccc2eea3f0d8dea8f4f5a1ca8b86fe74c13c7 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 27 May 2022 19:02:23 +0100 Subject: Fix code generation in partitioning and scheduling --- src/hls/Partition.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hls/Partition.ml') diff --git a/src/hls/Partition.ml b/src/hls/Partition.ml index 3b7cdd7..07b1be9 100644 --- a/src/hls/Partition.ml +++ b/src/hls/Partition.ml @@ -68,14 +68,14 @@ let rec next_bblock_from_RTL is_start e (c : RTL.code) s i = match trans_inst, succ with | (None, Some i'), _ -> if List.exists (fun x -> x = s) (snd e) && not is_start then - Errors.OK [RBnop; RBexit (None, (RBgoto s))] + Errors.OK [RBexit (None, (RBgoto s))] else Errors.OK [RBnop; RBexit (None, i')] | (Some i', None), (s', Some i_n)::[] -> if List.exists (fun x -> x = s) (fst e) then Errors.OK [i'; RBexit (None, (RBgoto s'))] else if List.exists (fun x -> x = s) (snd e) && not is_start then - Errors.OK [RBnop; RBexit (None, (RBgoto s))] + Errors.OK [RBexit (None, (RBgoto s))] else begin match next_bblock_from_RTL false e c s' i_n with | Errors.OK bb -> -- cgit