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:
Alyssa Rosenzweig
2020-10-14 18:57:20 -04:00
committed by Marge Bot
parent ad8a8499c9
commit ab9abc9052
2 changed files with 7 additions and 0 deletions

View File

@@ -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);

View File

@@ -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) */