OSDN Git Service

Add unnamed_addr when we can show that address of a global is not used.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 19 Jan 2011 16:32:21 +0000 (16:32 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 19 Jan 2011 16:32:21 +0000 (16:32 +0000)
commitc4440e3e307fb696146c08c127c53300a982fe82
tree98655770283e3e6cdb07b1892b925d7db9fffbbc
parent348c975cb89c0f92e2114d021388334c711292b5
Add unnamed_addr when we can show that address of a global is not used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123834 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/2008-04-26-SROA-Global-Align.ll
test/Transforms/GlobalOpt/2009-03-07-PromotePtrToBool.ll
test/Transforms/GlobalOpt/2009-11-16-MallocSingleStoreToGlobalVar.ll
test/Transforms/GlobalOpt/globalsra-unknown-index.ll
test/Transforms/GlobalOpt/memcpy.ll
test/Transforms/GlobalOpt/unnamed-addr.ll [new file with mode: 0644]