[PATCH] D44232: [SimplifyCFG] Create attribute to disable select formation.

Matt Morehouse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 7 15:24:31 PST 2018


morehouse created this revision.
morehouse added reviewers: vitalybuka, davide, arsenm, hfinkel.
Herald added subscribers: hiraditya, javed.absar, wdng, mehdi_amini.

When building with libFuzzer, converting control flow to selects
reduces the coverage signal available to libFuzzer when trying to
find new inputs.  This patch provides a way to disable CFG
transforms that do this when building with libFuzzer.

Provides a less aggressive alternative to
https://reviews.llvm.org/D44057.


https://reviews.llvm.org/D44232

Files:
  llvm/include/llvm/Bitcode/LLVMBitCodes.h
  llvm/include/llvm/IR/Attributes.td
  llvm/lib/AsmParser/LLLexer.cpp
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/AsmParser/LLToken.h
  llvm/lib/Bitcode/Reader/BitcodeReader.cpp
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/IR/Attributes.cpp
  llvm/lib/IR/Verifier.cpp
  llvm/lib/Transforms/IPO/ForceFunctionAttrs.cpp
  llvm/lib/Transforms/Utils/CodeExtractor.cpp
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Transforms/SimplifyCFG/no-simplify-cfg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44232.137501.patch
Type: text/x-patch
Size: 8740 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180307/b8cef825/attachment.bin>


More information about the llvm-commits mailing list