mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add checkReachingBlockDominates utility.
This is a tiny routine that is useful for writing assertions to be used for quick sanity checks without computing Dominance. It doesn't always make sense to require a pass to maintain and pass around Dominance just for an assert.
This commit is contained in:
@@ -148,6 +148,10 @@ void findJointPostDominatingSet(
|
||||
function_ref<void(SILBasicBlock *)> foundJointPostDomSetCompletionBlocks,
|
||||
function_ref<void(SILBasicBlock *)> inputBlocksInJointPostDomSet = {});
|
||||
|
||||
#ifndef NDEBUG
|
||||
bool checkDominates(SILBasicBlock *sourceBlock, SILBasicBlock *destBlock);
|
||||
#endif
|
||||
|
||||
} // namespace swift
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user