search for: gpr_union_spr

Displaying 2 results from an estimated 2 matches for "gpr_union_spr".

2019 Dec 18
2
Spilling to register for a given register class
...ieve that by > providing a larger register class that contains the union of the registers > that are used with where they can be spilled. > > For instance, let say you have a register class GPR that can be spilled > into SPR. > You would create three register classes: GPR, SPR and GPR_union_SPR. > GPR_union_SPR is never explicitly used in any real instruction (i.e., it > does not appear in any MC description), but will give a way to regalloc to > relax the constraints on available registers when doing live-range > splitting. > > Let say you have the following code: >...
2019 Dec 17
2
Spilling to register for a given register class
Hello, for an architecture that doesn't have a good way to load/store a given register class to memory, is it instead easy to spill/fill from another register class instead? e.g. - storeRegToStack/loadRegFromStack use a pseudo instruction and add virtual register operand is not supported (spill optimization doesn't seem to like this). - AMDGPU backend seems to do sth. similar? The only