[llvm-commits] [llvm] r102519 - in /llvm/trunk: lib/VMCore/Metadata.cpp test/Transforms/GlobalOpt/metadata.ll

Chris Lattner clattner at apple.com
Thu Apr 29 15:57:32 PDT 2010


On Apr 29, 2010, at 4:32 AM, Duncan Sands wrote:

> Hi Chris,
> 
>> fix PR6112 - When globalopt (or any other pass) does RAUW(@G, %G),
>> metadata references in non-function-local MDNodes should drop to
>> null.
> 
> thanks for fixing this.  However there is the theoretical possibility
> that the metadata M using @G is function local, but for a different
> function to the function containing %G.  That will result in inconsistent
> functions for M and %G, which is not allowed AFAIK.  Probably the thing
> to do is to return the containing function in isFunctionLocalValue, or
> NULL if there is none, and compare with that of the metadata.

I'm not sure what you mean, can you restate the possible problem?




More information about the llvm-commits mailing list