pan/bi: Add no_spill flag to IR
Will be used to prevent double spills. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
This commit is contained in:

committed by
Marge Bot

parent
ad8a8499c9
commit
ab9abc9052
@@ -285,6 +285,9 @@ bi_print_instruction(bi_instruction *ins, FILE *fp)
|
||||
if (ins->skip)
|
||||
fprintf(fp, ".skip");
|
||||
|
||||
if (ins->no_spill)
|
||||
fprintf(fp, ".no_spill");
|
||||
|
||||
if (ins->vector_channels)
|
||||
fprintf(fp, ".v%u", ins->vector_channels);
|
||||
|
||||
|
@@ -314,6 +314,10 @@ typedef struct {
|
||||
/* For memory ops, base address */
|
||||
enum bi_segment segment;
|
||||
|
||||
/* Can we spill the value written here? Used to prevent
|
||||
* useless double fills */
|
||||
bool no_spill;
|
||||
|
||||
/* A class-specific op from which the actual opcode can be derived
|
||||
* (along with the above information) */
|
||||
|
||||
|
Reference in New Issue
Block a user