Skip to content

Commit

Permalink
vectorizer: improve debug printout (#3445)
Browse files Browse the repository at this point in the history
  • Loading branch information
gretay-js authored Jan 14, 2025
1 parent 6239156 commit b15d44e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/cfg/vectorize.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2121,7 +2121,7 @@ end = struct
= Simd_selection.vector_width_in_bits);
Format.(
State.dump_debug (Dependencies.state deps) "Group.init\n%a\n"
(pp_print_list ~pp_sep:pp_print_newline Instruction.print_id)
(pp_print_list ~pp_sep:pp_print_newline Instruction.print)
instructions);
match instructions with
| [] -> assert false
Expand All @@ -2144,7 +2144,10 @@ end = struct
~res_count cfg_ops
in
match vector_instructions with
| None -> None
| None ->
State.dump_debug (Dependencies.state deps)
"Group.init: cannot vectorize operation\n";
None
| Some vector_instructions ->
let non_address_arg_count =
match mem_op with
Expand Down

0 comments on commit b15d44e

Please sign in to comment.