Skip to content

Commit 1e41668

Browse files
k0kubuntekknolagi
andauthored
ZJIT: Drop a duplicated call into optimize (ruby#13196)
* ZJIT: Drop a duplicated call into optimize * Update a comment Co-authored-by: Max Bernstein <[email protected]> --------- Co-authored-by: Max Bernstein <[email protected]>
1 parent 9996d69 commit 1e41668

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

zjit/src/codegen.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,11 @@ fn gen_iseq(cb: &mut CodeBlock, iseq: IseqPtr) -> Option<(CodePtr, Vec<(Rc<Branc
169169
return Some((start_ptr, vec![]));
170170
}
171171

172-
// Convert ISEQ into High-level IR
173-
let mut function = match compile_iseq(iseq) {
172+
// Convert ISEQ into High-level IR and optimize HIR
173+
let function = match compile_iseq(iseq) {
174174
Some(function) => function,
175175
None => return None,
176176
};
177-
function.optimize();
178177

179178
// Compile the High-level IR
180179
let result = gen_function(cb, iseq, &function);

0 commit comments

Comments
 (0)