[Mesa-dev] [PATCH] glsl: optimize list handling in opt_dead_code
0xe2.0x9a.0x9b at gmail.com
Tue Oct 18 13:25:16 UTC 2016
On Tue, Oct 18, 2016 at 3:12 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> On 18.10.2016 15:07, Jan Ziak wrote:
>> On Tue Oct 18 09:29:59 UTC 2016, Eero Tamminen wrote:
>>> On 18.10.2016 01:07, Jan Ziak wrote:
>>>> - The total number of executed instructions goes down from 64.184 to
>>>> giga-instructions when Mesa is compiled with "gcc -O0 ..."
>>> Please don't do performance related decisions based on data from
>>> compiling code with optimizations disabled. Use -O2 or -O3 (or even
>>> better, check both).
>> Options -O2 and -O3 interfere with profiling tools.
>> I will try using -Og the next time.
> Just stop and use proper profiling tools like perf that can work with
> optimized tools. You may have to compile with -fno-omit-frame-pointer, but
> anything more than that is going to distort your measurement results so much
> that they're worthless.
The function from -O0, -O1, -O2 to number-of-instructions (or to
number-of-cycles) is in the vast majority of cases a monotonically
Are you saying that this rule does not hold in the case of this patch?
More information about the mesa-dev