[ofiwg] allowing aliasing in fetch atomics?
Dave Goodell (dgoodell)
dgoodell at cisco.com
Wed Nov 11 11:34:13 PST 2015
On Nov 11, 2015, at 2:01 PM, Jeff Hammond <jeff.science at gmail.com> wrote:
> Why do memcpy and memmove both exist? Why did C99 introduce restrict? Why does Fortran prohibit aliasing?
> I have measured the benefits of restrict semantics w.r.t. vectorization many times in the past, enough that I did not bother to benchmark this specific case.
But you already offered a fix for that issue, which was to just have two versions of the implementation to handle aliased/non-aliased. The overlap check is pretty cheap.
More information about the ofiwg