Is there a pass or piece of code somewhere in LLVM that knows how to delete GlobalVariables that are never used? And iterate to then delete GlobalVariables that only were used (in their initializers) by GlobalVariables previously deleted? -Dave
On Wed, Oct 7, 2009 at 4:05 PM, David Greene <dag at cray.com> wrote:> Is there a pass or piece of code somewhere in LLVM that knows how to delete > GlobalVariables that are never used? And iterate to then delete > GlobalVariables that only were used (in their initializers) by GlobalVariables > previously deleted?http://llvm.org/docs/Passes.html#globaldce
Maybe Matching Threads
- RFC: metadata attachments for global variables
- globalVariables()
- DebugInfo: Global variable expression management
- RFC: metadata attachments for global variables
- [LLVMdev] Removing AvailableExternal values in GlobalDCE (was Re: RFC: ThinLTO Impementation Plan)