mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
e26ab5dbf2
commit
998be6b3a4
3 changed files with 14 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue