[llvm-commits] [llvm] r159173 - in /llvm/trunk: lib/Transforms/Scalar/SimplifyLibCalls.cpp test/Transforms/SimplifyLibCalls/2009-01-04-Annotate.ll

Eli Friedman eli.friedman at gmail.com
Mon Jun 25 16:14:09 PDT 2012


On Mon, Jun 25, 2012 at 3:55 PM, Nuno Lopes <nunoplopes at sapo.pt> wrote:
> Author: nlopes
> Date: Mon Jun 25 17:55:50 2012
> New Revision: 159173
>
> URL: http://llvm.org/viewvc/llvm-project?rev=159173&view=rev
> Log:
> do not set realloc() as NotAlias, since it can return the same pointer.

Strictly speaking, realloc as defined by the C99 standard is in fact
noalias... even if the returned value is "the same", it doesn't refer
to the same object in aliasing terms.

-Eli



More information about the llvm-commits mailing list