From 728963ac49cd8e6451f4214d3da325bbac72dc72 Mon Sep 17 00:00:00 2001 From: Shoaib Meenai Date: Tue, 29 Jan 2019 22:17:51 +0000 Subject: [PATCH] [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352550 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/HowToSubmitABug.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/HowToSubmitABug.rst b/docs/HowToSubmitABug.rst index 7881a6e8dcc..d276ee8681f 100644 --- a/docs/HowToSubmitABug.rst +++ b/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