summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2019-01-31 23:43:00 +0000
committerKostya Serebryany <kcc@google.com>2019-01-31 23:43:00 +0000
commita78a44d480bda7ad51d359ced2a56f0b32554c0a (patch)
tree8adac28d66a6619cf29ec2951014119cfc848a01 /clang
parent50d6579bac8fb6b9c65d3c762ab485804ffe3a9c (diff)
downloadbcm5719-llvm-a78a44d480bda7ad51d359ced2a56f0b32554c0a.tar.gz
bcm5719-llvm-a78a44d480bda7ad51d359ced2a56f0b32554c0a.zip
[sanitizer-coverage] prune trace-cmp instrumentation for CMP isntructions that feed into the backedge branch. Instrumenting these CMP instructions is almost always useless (and harmful) for fuzzing
llvm-svn: 352818
Diffstat (limited to 'clang')
-rw-r--r--clang/docs/SanitizerCoverage.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/docs/SanitizerCoverage.rst b/clang/docs/SanitizerCoverage.rst
index 728aa2f77fc..c5c50a5dd96 100644
--- a/clang/docs/SanitizerCoverage.rst
+++ b/clang/docs/SanitizerCoverage.rst
@@ -248,6 +248,9 @@ and with ``-fsanitize-coverage=trace-gep`` --
the `LLVM GEP instructions <https://llvm.org/docs/GetElementPtr.html>`_
(to capture array indices).
+Unless ``no-prune`` option is provided, some of the comparison instructions
+will not be instrumented.
+
.. code-block:: c++
// Called before a comparison instruction.
OpenPOWER on IntegriCloud