@AndresFreundTec@mastodon.social
Post #2194754
2026-04-07 03:35 UTC
@pinskia@hachyderm.io Will try.
There are cases where I get it, the compiler can't know that yes, I do want this large piece of code duplicated just to constant-propagate with different values.
But the case at hand was generating a partial of
inline instr_time
pg_get_ticks(void)
{
if (timing_tsc_enabled)
{
instr_time now;
now.ticks = pg_rdtscp();
return now;
}
return pg_get_ticks_system();
}
where pg_get_ticks_system() is just a clock_gettime() converting to ns.
Replies (1)
-
@AndresFreundTec@mastodon.social 2026-04-07 03:40
@pinskia@hachyderm.io Unfortunately a trivial reproducer does not end up doing it... So I need to figure out how to get the real case reduced...