[Bug rtl-optimization/104405] Inefficient register allocation on complex arithmetic

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 7 09:02:56 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104405

--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> There is of course the option to switch to alternate heuristics if, by
> heuristic, the argument/return part of the function is a big part of it (aka
> for toy examples or small functions which do happen in real-life).

Indeed a solution to be considered, but then...

> Also toy examples can highlight issues that also exist in the real world.

...you break the connection between toy examples and real world even more.

In any case, I'm not a RA specialist so I'll stop there, but my understanding
is that you don't build a good RA for real world code by examining a list of
reduced cases and trying to make it optimal for each of them.


More information about the Gcc-bugs mailing list