Skip to content

Commit

Permalink
remove debug prints and old code
Browse files Browse the repository at this point in the history
  • Loading branch information
Snektron committed Nov 9, 2021
1 parent a78f542 commit 2c224e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 520 deletions.
26 changes: 0 additions & 26 deletions src/compiler/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,32 +85,6 @@ namespace backend {
throw futhark::Error(ctx);
});

//Print instr gen
auto instr_gen_opcodes = futhark::UniqueArray<uint32_t, 1>(ctx);
auto instr_gen_rd = futhark::UniqueArray<int64_t, 1>(ctx);
auto instr_gen_rs1 = futhark::UniqueArray<int64_t, 1>(ctx);
auto instr_gen_rs2 = futhark::UniqueArray<int64_t, 1>(ctx);
auto instr_gen_jt = futhark::UniqueArray<uint32_t, 1>(ctx);
futhark_entry_backend_split_instr(
ctx,
&instr_gen_opcodes,
&instr_gen_rd,
&instr_gen_rs1,
&instr_gen_rs2,
&instr_gen_jt,
instr
);

auto h_opcodes = instr_gen_opcodes.download();
auto h_rd = instr_gen_rd.download();
auto h_rs1 = instr_gen_rs1.download();
auto h_rs2 = instr_gen_rs2.download();
auto h_jt = instr_gen_jt.download();

for (size_t i = 0; i < h_opcodes.size(); ++i) {
fmt::print(std::cerr, "{:0>32b} {} {} {} {}\n", h_opcodes[i], h_rd[i], h_rs1[i], h_rs2[i], h_jt[i]);
}

// Stage 4, optimizer
auto optimize = futhark::UniqueArray<bool, 1>(ctx);
p.measure("optimize", [&] {
Expand Down
Loading

0 comments on commit 2c224e4

Please sign in to comment.