[Issue 7413] Vector literals don't work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 2 11:25:18 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7413


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #13 from Don <clugdbug at yahoo.com.au> 2012-05-02 11:26:26 PDT ---
(In reply to comment #12)
> (In reply to comment #11)
> > Haven't done the special case optimizations for constant loading.
> 
> No problem, I'm using GDC anyway which might detect those in the back end.
> 
> An efficient implementation would certainly use at least an xor for 0
> initialisation, and the other tricks will get different mileage depending on
> the length of the pipeline surrounding. Not accessing memory is always better
> if there are pipeline cycles to soak up the latency.

The -1 trick is always worth doing, I think. Agner Fog has a nice list in his
optimisation manuals, but the only ones _always_ worth doing are the 0 and -1
integer cases, and the 0.0 floating point case (also using xor).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list