[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

Duncan Sands baldrick at free.fr
Sun Feb 15 10:20:30 PST 2009


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.

Ciao,

Duncan.



More information about the llvm-commits mailing list