[llvm-commits] [llvm] r64583 - in /llvm/trunk: lib/Transforms/IPO/GlobalOpt.cpp test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll

Chris Lattner clattner at apple.com
Sun Feb 15 11:05:19 PST 2009


On Feb 15, 2009, at 10:20 AM, Duncan Sands wrote:

> Hi Chris,
>
>> I don't think that renaming "f" is ok if it is also marked "attribute
>> used".  If there were inline asm referring to the name "f", then it
>> would cease to work if renamed to "a".
>
> the transform is only performed if @a is the only use of @f.  In
> particular, @f cannot be used by llvm.used, so this problem does
> not arise.

Ok, great, thanks Duncan!

-Chris




More information about the llvm-commits mailing list