Re: Avoid global optimize flag checks in LTO

2017-07-07 Thread Jan Hubicka
> On 7 July 2017 15:31:55 CEST, Jan Hubicka wrote: > >Hi, > >this patch fixes some places where we check global optimize flag rather > >than > >doing it per-function. This makes optimization attribute work closer to > >what one gets when passing the same flag at command line. >

Re: Avoid global optimize flag checks in LTO

2017-07-07 Thread Bernhard Reutner-Fischer
On 7 July 2017 15:31:55 CEST, Jan Hubicka wrote: >Hi, >this patch fixes some places where we check global optimize flag rather >than >doing it per-function. This makes optimization attribute work closer to >what one gets when passing the same flag at command line. >This requires

Avoid global optimize flag checks in LTO

2017-07-07 Thread Jan Hubicka
Hi, this patch fixes some places where we check global optimize flag rather than doing it per-function. This makes optimization attribute work closer to what one gets when passing the same flag at command line. This requires to run IPA passes even with !optimize, but having fast way through which