summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLLexer.cpp
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-03-22 17:07:51 +0000
committerMatt Morehouse <mascasa@google.com>2018-03-22 17:07:51 +0000
commit236cdaf84c684a985fa501721bf99b93ce2614da (patch)
treefe5f6bf678a35bd33afc33628d5ad860195240a9 /llvm/lib/AsmParser/LLLexer.cpp
parent4c86af7579156d3d07fb4cb6148786e56b03b9ca (diff)
downloadbcm5719-llvm-236cdaf84c684a985fa501721bf99b93ce2614da.tar.gz
bcm5719-llvm-236cdaf84c684a985fa501721bf99b93ce2614da.zip
[SimplifyCFG] Create attribute for fuzzing-specific optimizations.
Summary: When building with libFuzzer, converting control flow to selects or obscuring the original operands of CMPs reduces the effectiveness of libFuzzer's heuristics. This patch provides an attribute to disable or modify certain optimizations for optimal fuzzing signal. Provides a less aggressive alternative to https://reviews.llvm.org/D44057. Reviewers: vitalybuka, davide, arsenm, hfinkel Reviewed By: vitalybuka Subscribers: junbuml, mehdi_amini, wdng, javed.absar, hiraditya, llvm-commits, kcc Differential Revision: https://reviews.llvm.org/D44232 llvm-svn: 328214
Diffstat (limited to 'llvm/lib/AsmParser/LLLexer.cpp')
-rw-r--r--llvm/lib/AsmParser/LLLexer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLLexer.cpp b/llvm/lib/AsmParser/LLLexer.cpp
index e3157603203..645d9aae6ea 100644
--- a/llvm/lib/AsmParser/LLLexer.cpp
+++ b/llvm/lib/AsmParser/LLLexer.cpp
@@ -650,6 +650,7 @@ lltok::Kind LLLexer::LexIdentifier() {
KEYWORD(noreturn);
KEYWORD(nocf_check);
KEYWORD(nounwind);
+ KEYWORD(optforfuzzing);
KEYWORD(optnone);
KEYWORD(optsize);
KEYWORD(readnone);
OpenPOWER on IntegriCloud