diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-01-11 22:29:53 +0000 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-01-11 22:29:53 +0000 |
commit | 0bec4f557a96e1a40437cf5af20cc78a5eec8a63 (patch) | |
tree | c1e05ec804c43aa5a8f5f21b0ed02d0587d29563 /compiler_and_linker/unsorted/SpillCode.c | |
parent | aec1b8dddc68ecb8288ec6132932e4c7b4bca09f (diff) | |
download | MWCC-0bec4f557a96e1a40437cf5af20cc78a5eec8a63.tar.gz MWCC-0bec4f557a96e1a40437cf5af20cc78a5eec8a63.zip |
getting closer
Diffstat (limited to 'compiler_and_linker/unsorted/SpillCode.c')
-rw-r--r-- | compiler_and_linker/unsorted/SpillCode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler_and_linker/unsorted/SpillCode.c b/compiler_and_linker/unsorted/SpillCode.c index bfafbac..477d391 100644 --- a/compiler_and_linker/unsorted/SpillCode.c +++ b/compiler_and_linker/unsorted/SpillCode.c @@ -50,7 +50,7 @@ void estimatespillcosts(void) { while (i--) { if (PC_OP_IS_WRITE_ANY_REGISTER(op, coloring_class)) { node = interferencegraph[op->data.reg.reg]; - if (node->instr8 || (instr->flags & fPCodeFlag8000)) + if (node->instr8 || (instr->flags & fIsArgInit)) node->spillCost -= weight; else node->spillCost += weight; @@ -291,7 +291,7 @@ static void spillinstruction(PCodeBlock *block, PCode *instr) { } if (writeCounter) { - if (node->instr8 || (instr->flags & fPCodeFlag8000)) + if (node->instr8 || (instr->flags & fIsArgInit)) flag = 1; else insert_store_spilled_register(instr, 0, reg2, node); @@ -440,9 +440,9 @@ void insertspillcode(void) { if (coloring_class == RegClass_VR && rTEMP_for_VR_spill == 0) rTEMP_for_VR_spill = used_virtual_registers[RegClass_GPR]++; - if (instr->flags & fPCodeFlag10) + if (instr->flags & fIsMove) spillcopy(block, instr); - else if (instr->flags & fPCodeFlag8) + else if (instr->flags & fIsCall) spillcall(block, instr); else spillinstruction(block, instr); |