| Issue |
71692
|
| Summary |
[CodeGen] Reserved registers frozen multiple times
|
| Labels |
backend:AMDGPU
|
| Assignees |
|
| Reporter |
nikic
|
Based on our documentation, it sounds like the set of ReservedRegs is supposed to stay constant after it has been frozen:
https://github.com/llvm/llvm-project/blob/98d8b688bd351850ca99d3e5e9dfdf582c83c4f4/llvm/include/llvm/CodeGen/MachineRegisterInfo.h#L901-L911
However, in practice we call freezeReservedRegs() at least twice, once during FinalizeISel and then again in RegAlloc. Adding a check to not touch the ReservedRegs if they have already been computed results in a bunch of verifier failures in AMDGPU.
I think *something* is wrong here (possibly just our documentation), but I'm not familiar enough with the subject matter to figure out what...
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs