lto: fix usage of timer in materialize_cgraph
PR lto/107829 gcc/lto/ChangeLog: * lto.cc (materialize_cgraph): Call timevar_push before materialization starts.
This commit is contained in:
parent
bcc2449384
commit
2b3a3d7fe3
1 changed files with 6 additions and 8 deletions
|
@ -137,6 +137,12 @@ materialize_cgraph (void)
|
|||
fprintf (stderr,
|
||||
flag_wpa ? "Materializing decls:" : "Reading function bodies:");
|
||||
|
||||
/* Start the appropriate timer depending on the mode that we are
|
||||
operating in. */
|
||||
lto_timer = (flag_wpa) ? TV_WHOPR_WPA
|
||||
: (flag_ltrans) ? TV_WHOPR_LTRANS
|
||||
: TV_LTO;
|
||||
timevar_push (lto_timer);
|
||||
|
||||
FOR_EACH_FUNCTION (node)
|
||||
{
|
||||
|
@ -147,14 +153,6 @@ materialize_cgraph (void)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/* Start the appropriate timer depending on the mode that we are
|
||||
operating in. */
|
||||
lto_timer = (flag_wpa) ? TV_WHOPR_WPA
|
||||
: (flag_ltrans) ? TV_WHOPR_LTRANS
|
||||
: TV_LTO;
|
||||
timevar_push (lto_timer);
|
||||
|
||||
current_function_decl = NULL;
|
||||
set_cfun (NULL);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue