[LLVMdev] clang -O is removing statements

Jiang LONG jiang.long at berkeley.edu
Sun Nov 9 17:09:13 PST 2014


Hi,

I am using clang (latest) to compile C code and process the byte code.
However, if I use -O to optimize, it is removing statements for some
reason. I am wondering if there is a way to do the optimization of (alloca
and store) but still keep all the statements un-touched.

-Jiang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141109/066099a9/attachment.html>


More information about the llvm-dev mailing list