Hello Dimitar,

On 19.11.23 10:00, Dimitar Dimitrov wrote:
On Tue, Nov 14, 2023 at 11:08:24PM +0100, Sebastian Huber wrote:
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.
---
  gcc/tree-profile.cc | 133 +++++++++++++++++++++-----------------------
  1 file changed, 62 insertions(+), 71 deletions(-)

Hi Sebastian,

This patch caused a bunch of test failures on arm-none-eabi and
pru-unknown-elf targets.

thanks for the report. I will have a look at this next week. I guess it has something to do with the removed unshare_expr() call. I don't really know what it does, but I will try to figure this out.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/

Reply via email to