Re: Intermediate report for AIX 5L port - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: Intermediate report for AIX 5L port
Date
Msg-id 3C18C952.D2460588@fourpalms.org
Whole thread Raw
In response to Re: Intermediate report for AIX 5L port  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
...
> It can see the lock values don't have any effect on 'a'.  What actually
> does keep this stuff from moving around?

Lack of ambition?

I'm pretty sure that the only reasons *to* reorder instructions are:

1) there could be a performance gain, as in  a) loop unrolling b) pipeline fill considerations c) unnecessary
assignment(e.g. result is ignored, or only used on one
 
path)

2) the optimization level allows it (-O0 does not reorder at all)

I vaguely recall that the gcc docs discuss the kinds of optimizations
allowed at each level. Presumably IBM's AIX compiler was a bit more
aggressive in evaluating costs or pipeline fills than is gcc on other
processors.
                     - Thomas


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: [CYGWIN] Platform Testing - Cygwin
Next
From: Patrick Welche
Date:
Subject: Re: Bulkloading using COPY - ignore duplicates?