[compiler][ez] Remove unused param (#31376)

This commit is contained in:
Sathya Gunasekaran 2024-10-28 15:08:27 +00:00 committed by GitHub
parent aded0ef831
commit 02c0e824e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,6 @@
import {isValidIdentifier} from '@babel/types';
import {CompilerError} from '../CompilerError';
import {
Environment,
GotoVariant,
HIRFunction,
IdentifierId,
@ -130,7 +129,7 @@ function applyConstantPropagation(
continue;
}
const instr = block.instructions[i]!;
const value = evaluateInstruction(fn.env, constants, instr);
const value = evaluateInstruction(constants, instr);
if (value !== null) {
constants.set(instr.lvalue.identifier.id, value);
}
@ -223,7 +222,6 @@ function evaluatePhi(phi: Phi, constants: Constants): Constant | null {
}
function evaluateInstruction(
env: Environment,
constants: Constants,
instr: Instruction,
): Constant | null {