On Fri, Dec 9, 2016 at 3:58 PM, Bernd Schmidt <bschm...@redhat.com> wrote: > On 12/09/2016 04:34 PM, Andre Vieira (lists) wrote: > >> Regardless, the other testcases I add in this patch show a sub-optimal >> transformation done by postreload, turning direct calls into indirect >> calls, for targets which have specifically pointed out that no CSE >> should be done on functions through 'NO_FUNCTION_CSE'. > > > What I'm wondering about is whether the patch wouldn't also prevent the > opposite transformation. Is there a reason not to do that one? Can the > problem be modeled by tweaking costs?
I really don't think we should have a solution that relies on costs for correctness . regards Ramana