Skip to content

Commit

Permalink
Fix cmv constant optimize bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fourcolor committed Jan 7, 2024
1 parent 4975222 commit cfc89a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rv32_constopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,8 @@ CONSTOPT(cmv, {
info->const_val[ir->rd] = ir->imm;
ir->opcode = rv_insn_clui;
ir->impl = dispatch_table[ir->opcode];
} else {
info->is_constant[ir->rd] = false;
}
})

Expand Down

1 comment on commit cfc89a1

@jserv
Copy link
Contributor

@jserv jserv commented on cfc89a1 Jan 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmarks

Benchmark suite Current: cfc89a1 Previous: 32895fb Ratio
Dhrystone 1628.66 Average DMIPS over 10 runs 1614.33 Average DMIPS over 10 runs 0.99
Coremark 1513.913 Average iterations/sec over 10 runs 1526.805 Average iterations/sec over 10 runs 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.