[RegAlloc] Add a complexity limit in growRegion() to cap compilation time.
growRegion() does not scale in code with BBs with a very large number of edges. In such code growRegion() becomes a compile-time bottleneck, consuming 60% of the total compilation time. This patch adds a limit to the complexity of growRegion() by incrementing a counter in each iteration. We bail out once the limit is reached. Differential Revision: https://reviews.llvm.org/D120752
Loading
Please register or sign in to comment