mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #65858 from eeckstein/fix-stack-nesting
SIL Optimizer: handle dead-end infinite loops in StackNesting
This commit is contained in:
@@ -77,6 +77,11 @@ private:
|
||||
|
||||
/// Used in the setup function to walk over the CFG.
|
||||
bool visited = false;
|
||||
|
||||
/// True for dead-end blocks, i.e. blocks from which there is no path to
|
||||
/// a function exit, e.g. blocks which end with `unreachable` or an
|
||||
/// infinite loop.
|
||||
bool isDeadEnd = false;
|
||||
};
|
||||
|
||||
/// Data stored for each stack location (= allocation).
|
||||
|
||||
Reference in New Issue
Block a user