Add -enable-ossa-simplifycfg and -enable-ossa-jumpthread-simplifycfg

as temporary flags to gradually stage in OSSA tests.
This commit is contained in:
Andrew Trick
2021-07-16 10:01:33 -07:00
parent c46acc0f9c
commit 74e928b39e
3 changed files with 57 additions and 30 deletions

View File

@@ -203,7 +203,8 @@ SILLinkage getSpecializedLinkage(SILFunction *f, SILLinkage linkage);
/// function \p Fn.
bool tryCheckedCastBrJumpThreading(
SILFunction *fn, DominanceInfo *dt,
SmallVectorImpl<SILBasicBlock *> &blocksForWorklist);
SmallVectorImpl<SILBasicBlock *> &blocksForWorklist,
bool EnableOSSARewriteTerminator);
/// A utility for deleting one or more instructions belonging to a function, and
/// cleaning up any dead code resulting from deleting those instructions. Use