[PATCH] D89590: [NPM][SimplifyCFGPass] For OptForFuzzing attribute, disable SimplifyCondBranch and FoldTwoEntryPHINode in NPM
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 21 12:38:29 PDT 2020
aeubanks added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp:248-251
+ if (F.hasFnAttribute(Attribute::OptForFuzzing))
+ Options.setSimplifyCondBranch(false).setFoldTwoEntryPHINode(false);
+ else
+ Options.setSimplifyCondBranch(true).setFoldTwoEntryPHINode(true);
----------------
zequanwu wrote:
> aeubanks wrote:
> > the changes in this file shouldn't be necessary any more
> Then this is pretty much the same as reverting the original commit. And Line 280-286 wouldn't be necessary either (LPM pass).
This would allow turning off SimplifyCondBranch and FoldTwoEntryPHINode, but otherwise yes. Maybe we should just revert with arsenm's approval.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89590/new/
https://reviews.llvm.org/D89590
More information about the llvm-commits
mailing list