[cfe-users] Clang optimization options with out dead code elimination?

Guofeng Zhang via cfe-users cfe-users at lists.llvm.org
Thu Dec 19 00:19:00 PST 2019


Hi,

We use clang 8+. Does clang have options (not -O0) that do not remove dead
code when clang optimize the code?

We have a old project, now migrating to Clang. It works well with -O0, but
failed when use -O1 to -O3.

Thanks,

Guofeng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20191219/ad8f28d9/attachment.html>


More information about the cfe-users mailing list