search for: cdtoropt

Displaying 2 results from an estimated 2 matches for "cdtoropt".

2014 Apr 30
4
[LLVMdev] Best way to clean up empty global_ctors
...'t run again. I'm wondering what the best fix is: 1. Should globalopt run once more after all other passes have run? 2. Or should the llvm.global_ctors optimization code in globalopt be moved into a helper function somewhere that's called from both globalopt and a new optimization pass cdtoropt that does nothing but remove empty functions from llvm.global_ctors and llvm.global_dtors? Then only this new pass would be added after all other passes. (This new pass should run very quickly, it doesn't have to do much.) Thanks for any advice, Nico
2014 May 01
3
[LLVMdev] Best way to clean up empty global_ctors
...t the best fix is: > > 1. Should globalopt run once more after all other passes have run? > > 2. Or should the llvm.global_ctors optimization code in globalopt be > > moved into a helper function somewhere that's called from both > > globalopt and a new optimization pass cdtoropt that does nothing but > > remove empty functions from llvm.global_ctors and llvm.global_dtors? > > Then only this new pass would be added after all other passes. (This > > new pass should run very quickly, it doesn't have to do much.) > > How late do you need to move glo...