[docs] Prevent O0 optnone for opt input
authorShoaib Meenai <smeenai@fb.com>
Tue, 29 Jan 2019 22:17:51 +0000 (22:17 +0000)
committerShoaib Meenai <smeenai@fb.com>
Tue, 29 Jan 2019 22:17:51 +0000 (22:17 +0000)
commited2ebf82e70dec222df86d453f5df79e6e3933e7
treef080bb73b2776b7df3b370d3ed85852f162349cd
parentffa1d6ad17159965a2f0c08b4cae40b9a9fa3122
[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
llvm/docs/HowToSubmitABug.rst