ZJIT: Add flag to disable the HIR optimizer (#14181)

Also add a check in the bisect script that can assign blame to the HIR
optimizer.
This commit is contained in:
Max Bernstein 2025-08-12 10:00:22 -07:00 committed by GitHub
parent e26ab5dbf2
commit 998be6b3a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 1 deletions

View file

@ -1275,7 +1275,9 @@ fn compile_iseq(iseq: IseqPtr) -> Option<Function> {
return None;
}
};
function.optimize();
if !get_option!(disable_hir_opt) {
function.optimize();
}
if let Err(err) = function.validate() {
debug!("ZJIT: compile_iseq: {err:?}");
return None;