[Issue 9163] std.parallelism broken with extensive optimizations (gdc)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 16 07:40:06 PST 2012


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


jerro.public at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jerro.public at gmail.com


--- Comment #6 from jerro.public at gmail.com 2012-12-16 07:40:04 PST ---
> Could be something trivial such as the backend somehow deduces that the
> function (atomicLoad) is pure.

I don't know anything about the gcc backend, but it seems to me that it would
have to deduce that to be able to move a call out of the loop without breaking
code. I also noticed that adding an empty gcc asm block to atomicLoad results
in correct code being generated for workLoop. I guess that supports that
theory.

-- 
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