Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[greedyalloc] Return early when there is no register to allocate.
In X86 we split greddy register allocation into 2 passes. The 1st pass is to allocate tile register, and the 2nd pass is to allocate the rest of virtual register. In most cases there is no tile register, so the 1st pass is unnecessary. To improve the compiling time, we check if there is any register need to be allocated by invoking callback `ShouldAllocateClass`. If there is no register to be allocated, just return false in the pass. This would improve the 1st greed RA pass for normal cases. Differential Revision: https://reviews.llvm.org/D128804
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters