Re:CUDA Pro Tip: Optimize for Pointer Aliasing
by Ono-Sendai on Friday August 22, 2014 @10:49AM
(#8212309)
In a functional programming language, aliasing either doesn't matter (as accesses will be read-only for function arguments), or is easy, as the function result is not the same array as either of the arguments.
However, the general analysis you are looking for is known as "points-to analysis".
It is a very large and complicated topic. Happy to try to answer anything more specific though.