-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cranelift/s390x: Use PRegs consistently (#8449)
When OperandCollector's reg_use/reg_late_use/reg_def/reg_early_def methods are handed a Reg that refers to a physical ("real") register, they all delegate to reg_fixed_nonallocatable, ignoring the constraint kinds and positions. This behavior was introduced in #5132. In several cases, the s390x backend was calling those methods with the result of the `gpr` or `writable_gpr` functions, which return physical registers. In these cases we can now be more explicit that this is a non-allocatable register. In addition, this PR reverts #4973 and #5121 because they became unecessary due, again, to #5132.
- Loading branch information
1 parent
95ee0a2
commit 95fd37c
Showing
2 changed files
with
16 additions
and
29 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