search for: maindup

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

2016 Feb 09
2
CloneFunction during LTO leads to seg fault?
Hi Medhi, Thanks for you reply. Here is the full output of -print-after-all [1] and just the module itself after my pass[2]. I've looked over the IR, but I can't see anything obviously wrong. I'm not sure what you meant by: > You may want to try to add it at the end of the pipeline My pass is the last one added inside populateLTOPassManager. Should I add it to the
2016 Feb 11
2
CloneFunction during LTO leads to seg fault?
...nd run the result through opt with -std-link-opts, I get [2]. The optimizer does in fact inline add into main. > > Then I run my pass on [2] and I get [3]. > > All my pass does is: > > ValueToValueMapTy vMap; > auto main = M.getFunction("main"); > auto mainDup = CloneFunction(main, vMap, true); > M.getFunctionList().push_back(mainDup); > > Note that [2] and [3] are virtually the same except: 1) there is a new function "main.1" which is a copy of "main" and 2) there are more debug info metadata nodes at the end of the mod...