diff options
| -rw-r--r-- | clang/docs/UsersManual.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst index 48ea714304b..84dfe9fc3d7 100644 --- a/clang/docs/UsersManual.rst +++ b/clang/docs/UsersManual.rst @@ -1375,7 +1375,8 @@ Profile Guided Optimization Profile information enables better optimization. For example, knowing that a branch is taken very frequently helps the compiler make better decisions when ordering basic blocks. Knowing that a function ``foo`` is called more -frequently than another function ``bar`` helps the inliner. +frequently than another function ``bar`` helps the inliner. Optimization +levels ``-O2`` and above are recommended for use of profile guided optimization. Clang supports profile guided optimization with two different kinds of profiling. A sampling profiler can generate a profile with very low runtime |

