Skip to content

Commit 4949309

Browse files
committed
ZJIT: Remove optimize_getivar
1 parent 312d58f commit 4949309

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

zjit/src/hir.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5025,21 +5025,6 @@ impl Function {
50255025
Ok(())
50265026
}
50275027

5028-
fn optimize_getivar(&mut self) {
5029-
// for block in self.reverse_post_order() {
5030-
// let old_insns = std::mem::take(&mut self.blocks[block.0].insns);
5031-
// assert!(self.blocks[block.0].insns.is_empty());
5032-
// for insn_id in old_insns {
5033-
// match self.find(insn_id) {
5034-
// Insn::SetIvar { self_val, id, val, state, ic } => {
5035-
// }
5036-
// _ => { self.push_insn_id(block, insn_id); }
5037-
// }
5038-
// }
5039-
// }
5040-
// crate::stats::trace_compile_phase("infer_types", || self.infer_types());
5041-
}
5042-
50435028
fn gen_patch_points_for_optimized_ccall(&mut self, block: BlockId, recv_class: VALUE, method_id: ID, cme: *const rb_callable_method_entry_struct, state: InsnId) {
50445029
self.push_insn(block, Insn::PatchPoint { invariant: Invariant::NoTracePoint, state });
50455030
self.push_insn(block, Insn::PatchPoint { invariant: Invariant::MethodRedefined { klass: recv_class, method: method_id, cme }, state });
@@ -6200,7 +6185,6 @@ impl Function {
62006185
// Bucket all strength reduction together
62016186
(type_specialize) => { Counter::compile_hir_strength_reduce_time_ns };
62026187
(inline_trivial) => { Counter::compile_hir_strength_reduce_time_ns };
6203-
(optimize_getivar) => { Counter::compile_hir_strength_reduce_time_ns };
62046188
(optimize_c_calls) => { Counter::compile_hir_strength_reduce_time_ns };
62056189
(convert_no_profile_sends) => { Counter::compile_hir_strength_reduce_time_ns };
62066190
// End strength reduction bucket
@@ -6250,7 +6234,6 @@ impl Function {
62506234
// inliner then handles more complex methods that require full inlining.
62516235
run_pass!(inline_trivial);
62526236
let did_inline = run_pass!(inline_methods);
6253-
run_pass!(optimize_getivar);
62546237
run_pass!(optimize_c_calls);
62556238
run_pass!(convert_no_profile_sends);
62566239
run_pass!(optimize_load_store);

0 commit comments

Comments
 (0)