There is already a way to add phys reg uses from a regmask,
but not for a single register.
This will help avoid fragile special handling in AMDGPU
reserved register compaction code in the prolog handling.
Differential D31955
MachineRegisterInfo: Add way to mark individual registers as used arsenm on Apr 11 2017, 12:48 PM. Authored by
Details
There is already a way to add phys reg uses from a regmask, This will help avoid fragile special handling in AMDGPU
Diff Detail Event TimelineComment Actions I think UsedPhysRegMask is supposed to be the union of all register mask operands in the function. It just functions as a cache there. Having a way to manually set/reset it seems wrong to me. What exactly do you want/need this for? Comment Actions The code before was replacing uses of reserved registers before the uses were added. I reordered things so I think that this isn't necessary anymore |