mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-23 19:21:29 +00:00
s/ir_function_pass_minor/ir_function_pass_peephole/
This commit is contained in:
parent
362d822e18
commit
8858f265dd
1 changed files with 2 additions and 2 deletions
4
ir.c
4
ir.c
|
@ -538,7 +538,7 @@ static bool instr_is_operation(uint16_t op)
|
|||
(op >= INSTR_AND && op <= INSTR_BITOR) );
|
||||
}
|
||||
|
||||
bool ir_function_pass_minor(ir_function *self)
|
||||
bool ir_function_pass_peephole(ir_function *self)
|
||||
{
|
||||
size_t b;
|
||||
|
||||
|
@ -688,7 +688,7 @@ bool ir_function_finalize(ir_function *self)
|
|||
return true;
|
||||
|
||||
if (OPTS_OPTIMIZATION(OPTIM_PEEPHOLE)) {
|
||||
if (!ir_function_pass_minor(self)) {
|
||||
if (!ir_function_pass_peephole(self)) {
|
||||
irerror(self->context, "generic optimization pass broke something in `%s`", self->name);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue