Merge pull request #65858 from eeckstein/fix-stack-nesting

SIL Optimizer: handle dead-end infinite loops in StackNesting
This commit is contained in:
eeckstein
2023-05-11 21:46:41 +02:00
committed by GitHub
3 changed files with 59 additions and 9 deletions

View File

@@ -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).