Hi. Did anybody use Dead code elimination (DCE)? I played a bit with it the last days - it basically does as it's written "Eliminate assignment instructions whose results are not used". I managed to run successfully DCE on reasonably complex C functions. There is a small trick, though, you need to do in order to run DCE correctly: since it uses the sid's of the CIL statements, you need to run the Cfg.cfgFun, which also initializes these sid's - this is basically a small patch to the deadcodelim.ml I can provide .
I have a question: did anybody implement copy propagation? Is this part of the partial.ml module that does also constant folding among others? I ask about copy and constant propagation because these would provide further opportunity for removal in DCE? One last thing: I guess the function removeUnusedVars can be substituted with Rmtmps.removeUnusedTemps, right? Thanks, Alex ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users