mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SILGenFunction::mergeCleanupBlocks.
Avoid emitting unnecessary basic block for cleanup chains. This is a general approach that handles all cases while simplifying SILGen emission and keeping the CFG in a valid state during SILGen.
This commit is contained in:
@@ -20,6 +20,11 @@ namespace swift {
|
||||
class SILFunction;
|
||||
class SILBasicBlock;
|
||||
|
||||
/// \brief Merge a basic block ending in a branch with its successor
|
||||
/// if possible.
|
||||
void mergeBasicBlockWithSingleSuccessor(SILBasicBlock *BB,
|
||||
SILBasicBlock *succBB);
|
||||
|
||||
/// A utility for finding dead-end blocks.
|
||||
///
|
||||
/// Dead-end blocks are blocks from which there is no path to the function exit
|
||||
|
||||
Reference in New Issue
Block a user