[PATCH] D43423: [SimplifyCFG] Create flag to disable simplifyCFG.

Vitaly Buka via Phabricator via llvm-commits llvm-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))


More information about the llvm-commits mailing list