-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cranelift: Simplify computing the clobber set (#8469)
We have a perfectly good data structure for holding sets of physical registers. We don't need a hash-set to determine whether we already added a register to an array when we can just add it to a PRegSet and then extract a suitable array out of that. This change also makes the computed array sorted, which isn't particularly important since the backends all modify it and then sort it again, but is generally a nice property to have.
- Loading branch information
1 parent
79885bd
commit 1a17dfb
Showing
1 changed file
with
11 additions
and
27 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