svadev AT lists.siebelschool.illinois.edu
Subject: Svadev mailing list
List archive
- From: Daniel Huang <dan.e.huang AT gmail.com>
- To: "<svadev AT cs.illinois.edu>" <svadev AT cs.illinois.edu>
- Subject: [svadev] safecode passes
- Date: Wed, 27 Feb 2013 23:02:01 -0500
- List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev/>
- List-id: <svadev.cs.uiuc.edu>
Hi Svadev,
I'm using a version of SAFECode where I have pool-allocation turned on. I've noticed that depending on the input C file, SAFECode sometimes does not write a bitcode file as specified in LTOCodeGenerator.cpp. Furthermore, whenever it does not write the bitcode file, it also does not run my pass (which I have bolded below). I add my pass in LTOCodeGenerator.cpp.
// Add the automatic pool allocation passes
passes.add(new OptimizeSafeLoadStore());
passes.add(new PA::AllNodesHeuristic());
passes.add(new PoolAllocate());
extern Pass * createPHPass(void);
passes.add(createPHPass());
Some sample inputs where the above happen are (from the SAFECode test/mem_safety directory):
double_free-002.c
double_free-008.c
double_free-011.c
I've also noticed that for any input file, when I turn optimization on (-O1, -O2, -O3), SAFECode does not write the bitcode file. Furthermore, it does not run my pass. Do you have any idea why this behavior occurs or how to fix this so that the bitcode writing and my pass are always run?
Thanks in advance,
Dan
- [svadev] safecode passes, Daniel Huang, 02/27/2013
- Re: [svadev] safecode passes, John Criswell, 02/28/2013
- Re: [svadev] safecode passes, John Criswell, 02/28/2013
- Re: [svadev] safecode passes, Daniel Huang, 02/28/2013
- Re: [svadev] safecode passes, John Criswell, 02/28/2013
- Re: [svadev] safecode passes, John Criswell, 02/28/2013
Archive powered by MHonArc 2.6.16.