dc.contributor.author | Horton, Michael Robert | |
dc.date.accessioned | 2020-08-28T10:49:35Z | |
dc.date.created | 2020-05 | |
dc.date.issued | 2020-06-18 | |
dc.date.submitted | 2020 | |
dc.identifier.citation | Horton, Michael Robert. 2020. Register Allocation by Pseudo-Boolean Optimization. Bachelor's thesis, Harvard College. | |
dc.identifier.uri | https://nrs.harvard.edu/URN-3:HUL.INSTREPOS:37364763 | * |
dc.description.abstract | Register Allocation is a part of the compilation process in which virtual registers are mapped to a physical memory location. This problem is NP-hard yet also an integral part of the compilation process which has led to the development of various efficient heuristics for achieving near optimal allocations. These heuristics are used in modern compilers such as gcc and clang. In this thesis, we investigate register allocation via the solving a pseudo-Boolean optimization (PBO) problem.
We develop a suitable encoding of Register Allocation as a PBO Problem. This PBO Problem has constraints relating to virtual and physical register liveness and a cost model developed to find not just a correct register allocation, but the optimal register allocation with respect to number of spills and expected program execution. We allow the PBO Solver to run for a specified amount of time (the longest trial being 6 hours per function) before the most optimal solution to the PBO problem found is used to perform register allocation.
We find that the heuristics are able to outperform the PBO Register Allocator. However, we find optimal solutions to 81% of functions in under 65 seconds and have runtimes within 3% of industry strength register allocation methods. Further work will add live-range splitting to the PBO Register Allocator which should improve performance against the heuristics. | |
dc.description.sponsorship | Computer Science | |
dc.description.sponsorship | Computer Science | |
dc.format.mimetype | application/pdf | |
dc.language.iso | en | |
dash.license | LAA | |
dc.title | Register Allocation by Pseudo-Boolean Optimization | |
dc.type | Thesis or Dissertation | |
dash.depositing.author | Horton, Michael Robert | |
dc.date.available | 2020-08-28T10:49:35Z | |
thesis.degree.date | 2020 | |
thesis.degree.grantor | Harvard College | |
thesis.degree.grantor | Harvard College | |
thesis.degree.level | Undergraduate | |
thesis.degree.level | Undergraduate | |
thesis.degree.name | AB | |
thesis.degree.name | AB | |
dc.type.material | text | |
thesis.degree.department | Computer Science | |
thesis.degree.department | Computer Science | |
dash.identifier.vireo | | |
dash.author.email | horton.mrf@gmail.com | |