This is an archive of the discontinued LLVM Phabricator instance.

SimplifyCFG: Clean up optforfuzzing implementation
ClosedPublic

Authored by arsenm on May 21 2020, 12:13 PM.

Details

Summary

This should function as any other SimplifyCFGOption rather than having
the transform check and specially consider the attribute itself.

Diff Detail

Event Timeline

arsenm created this revision.May 21 2020, 12:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2020, 12:13 PM
morehouse accepted this revision.May 21 2020, 2:47 PM
morehouse added inline comments.
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
6183

Should this go in the FoldTwoEntryPHINode function in case any future calls to the function are added?

This revision is now accepted and ready to land.May 21 2020, 2:47 PM
arsenm marked an inline comment as done.May 21 2020, 2:53 PM
arsenm added inline comments.
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
6183

I was going with the example of Options.SinkCommonInsts. If you are directly calling FoldTwoEntryPHINode, I would expect it to do as it claims regardless of the option