[PATCH] D56950: [docs] Prevent O0 optnone for opt input
Shoaib Meenai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 18 17:09:12 PST 2019
smeenai created this revision.
smeenai added reviewers: chandlerc, dblaikie.
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.
https://reviews.llvm.org/D56950
Files:
llvm/docs/HowToSubmitABug.rst
Index: llvm/docs/HowToSubmitABug.rst
===================================================================
--- llvm/docs/HowToSubmitABug.rst
+++ llvm/docs/HowToSubmitABug.rst
@@ -84,7 +84,7 @@
------------------------------
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``".
+``.bc`` file by passing "``-emit-llvm -O0 -Xclang -disable-O0-optnone -c -o foo.bc``".
Then run:
.. code-block:: bash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56950.182646.patch
Type: text/x-patch
Size: 486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190119/9dd821f9/attachment.bin>
More information about the llvm-commits
mailing list