diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-10-21 15:52:15 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-11-18 12:45:06 +0100 |
commit | a350a74d6113e3a84943266eb691275951c109d9 (patch) | |
tree | 6c21d34bb3f8c4266150b40feaeca89faeef9e53 /libgcc | |
parent | 3ef8882adcb1ab5fa535e9e1a2a28ea7c8eeca4f (diff) | |
download | gcc-a350a74d6113e3a84943266eb691275951c109d9.zip gcc-a350a74d6113e3a84943266eb691275951c109d9.tar.gz gcc-a350a74d6113e3a84943266eb691275951c109d9.tar.bz2 |
gcov: Add gen_counter_update()
Move the counter update to the new gen_counter_update() helper function. Use
it in gimple_gen_edge_profiler() and gimple_gen_time_profiler(). The resulting
gimple instructions should be identical with the exception of the removed
unshare_expr() call. The unshare_expr() call was used in
gimple_gen_edge_profiler().
gcc/ChangeLog:
* tree-profile.cc (gen_assign_counter_update): New.
(gen_counter_update): Likewise.
(gimple_gen_edge_profiler): Use gen_counter_update().
(gimple_gen_time_profiler): Likewise.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions