diff options
author | Vasileios Porpodas <vporpodas@google.com> | 2022-02-28 22:34:45 -0800 |
---|---|---|
committer | Vasileios Porpodas <vporpodas@google.com> | 2022-03-03 11:31:07 -0800 |
commit | 6f9640d6a3d57eaa2d0467d94a7b87963fbe53d7 (patch) | |
tree | 3f39496e9779657bd3f3071f155b92fb7fdb8654 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 34eb15b5c30601085acb0921f5410aafc0389232 (diff) | |
download | llvm-6f9640d6a3d57eaa2d0467d94a7b87963fbe53d7.zip llvm-6f9640d6a3d57eaa2d0467d94a7b87963fbe53d7.tar.gz llvm-6f9640d6a3d57eaa2d0467d94a7b87963fbe53d7.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions