[PATCH] D43423: [SimplifyCFG] Create flag to disable simplifyCFG.
Vitaly Buka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 21 15:25:25 PST 2018
vitalybuka added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:6056
SmallPtrSetImpl<BasicBlock *> *LoopHeaders) {
+ const Function *Fn = BB->getParent();
+ if (Fn && Fn->getMetadata("no_simplify_cfg"))
----------------
So maybe Attribute::SanitizeFuzzer for each function with --fsanitizer=fuzzer and then
```
if (... getFunction()->hasFnAttribute(Attribute::SanitizeFuzzer))
return;
```
https://reviews.llvm.org/D43423
More information about the cfe-commits
mailing list