From bc1321735c15104ffad195e1509cab5f3a044260 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 14 Dec 2022 01:00:56 +0000 Subject: rename some stuff and use an enum for RegClass --- compiler_and_linker/unsorted/LoopOptimization.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compiler_and_linker/unsorted/LoopOptimization.c') diff --git a/compiler_and_linker/unsorted/LoopOptimization.c b/compiler_and_linker/unsorted/LoopOptimization.c index 6472119..327d7e4 100644 --- a/compiler_and_linker/unsorted/LoopOptimization.c +++ b/compiler_and_linker/unsorted/LoopOptimization.c @@ -5,6 +5,7 @@ #include "compiler/CompilerTools.h" #include "compiler/LoopDetection.h" #include "compiler/PCode.h" +#include "compiler/Registers.h" #include "compiler/UseDefChains.h" #include "compiler/objects.h" #include "compiler/types.h" @@ -1309,7 +1310,7 @@ void changearraytoregisters(void) { while (i--) { if ( op->kind == PCOp_MEMORY && - (unsigned char) op->arg == 1 && + (PCOpMemoryArg) op->arg == PCOpMemory1 && (array = lookup_array_object(arrays, op->data.mem.obj)) && !array->invalid ) { @@ -1475,7 +1476,7 @@ void changearraytoregisters(void) { instr->argCount && (instr->flags & (fPCodeFlag2 | fPCodeFlag4)) && instr->args[2].kind == PCOp_MEMORY && - (unsigned char) instr->args[2].arg == 1 && + (PCOpMemoryArg) instr->args[2].arg == PCOpMemory1 && (array = lookup_array_object(arrays, instr->args[2].data.mem.obj)) && !(array->invalid) ) -- cgit v1.2.3