Skip to content

Commit ed2ebf8

Browse files
committed
[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
1 parent ffa1d6a commit ed2ebf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/docs/HowToSubmitABug.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ Compile-time optimization bugs
8484
------------------------------
8585

8686
If you find that a bug crashes in the optimizer, compile your test-case to a
87-
``.bc`` file by passing "``-emit-llvm -O0 -c -o foo.bc``".
88-
Then run:
87+
``.bc`` file by passing "``-emit-llvm -O1 -Xclang -disable-llvm-passes -c -o
88+
foo.bc``". Then run:
8989

9090
.. code-block:: bash
9191

0 commit comments

Comments
 (0)