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

--- Comment #7 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to David Binderman from comment #6)
> I wonder if changing type of static array full_costs from int to long would
> help solve the problem.
> 
> Adding vmakarov, who seems to be the author of most of this section
> of code.

I don't think this bug is important. It never results in a wrong code
generation.  It might only change the allocation cost and the cost change in
such case is insignificant.

Changing int to int64_t would hurt the compilation speed because costs arrays
can be quite big and the cost calculation is expensive. I have an experimental
branch (ira-select) which contains rewriting all this code, it might solve the
problem too.  There is a possibility that the new code will be in gcc-9.  If
the problem exists on the branch I'll work on it.

So I believe the bug should be P4 one and we can ignore it for now.

Reply via email to