[LLVMdev] running llvmgcc without optimization?
Juan Nicolas Ruiz
juanruiz at students.uiuc.edu
Tue Nov 19 20:50:01 PST 2002
How can I run llvm-gcc in such a way that does not perform
optimizations like constant propagation and dead code elimination?
In particular, I'm trying to analyze cases where the code will look
like:
int *op;
int *ip=(int*)malloc(sizeof(int));
op=ip;
/* store/read into *ip */
free(op);
but llvm-gcc transforms the above code to
int *ip=(int*)malloc(sizeof(int));
/* store/read into *ip */
free(ip);
which is a very reasonable thing to do, except that I _need_ to test
cases where I allocate objects with one pointer and deallocate with
another.
nicolas
More information about the llvm-dev
mailing list