From: Shoaib Meenai Date: Tue, 29 Jan 2019 22:17:51 +0000 (+0000) Subject: [docs] Prevent O0 optnone for opt input X-Git-Tag: llvmorg-10-init~13354 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed2ebf82e70dec222df86d453f5df79e6e3933e7;p=platform%2Fupstream%2Fllvm.git [docs] Prevent O0 optnone for opt input If we just compile with -O0, clang will add optnone attributes everywhere, so opt won't actually be able to perform any passes. Instruct clang to not emit the optnone so opt can do its thing. Differential Revision: https://reviews.llvm.org/D56950 llvm-svn: 352550 --- diff --git a/llvm/docs/HowToSubmitABug.rst b/llvm/docs/HowToSubmitABug.rst index 7881a6e..d276ee8 100644 --- a/llvm/docs/HowToSubmitABug.rst +++ b/llvm/docs/HowToSubmitABug.rst @@ -84,8 +84,8 @@ Compile-time optimization bugs ------------------------------ If you find that a bug crashes in the optimizer, compile your test-case to a -``.bc`` file by passing "``-emit-llvm -O0 -c -o foo.bc``". -Then run: +``.bc`` file by passing "``-emit-llvm -O1 -Xclang -disable-llvm-passes -c -o +foo.bc``". Then run: .. code-block:: bash