Skip to content

Commit d639eb7

Browse files
committed
Relabel variables
1 parent e894c72 commit d639eb7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

zjit/src/hir.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5016,12 +5016,12 @@ impl Function {
50165016
flush_aliasing(&mut compile_time_heap, offset);
50175017
},
50185018
insn => {
5019-
let insn_reads_memory = insn.effects_of().includes(Effect::read(abstract_heaps::Memory));
5020-
let insn_uses_control_flow = insn.effects_of().includes(Effect::write(abstract_heaps::Control));
5019+
let insn_can_read_memory = insn.effects_of().includes(Effect::read(abstract_heaps::Memory));
5020+
let insn_can_modify_control_flow = insn.effects_of().includes(Effect::write(abstract_heaps::Control));
50215021
// TODO(Jacob): We should refine the control flow check
50225022
// For instance, we could sink the StoreField instruction into failed guards
50235023
// This allows us to preserve the dead store optimization.
5024-
if insn_reads_memory || insn_uses_control_flow {
5024+
if insn_can_read_memory || insn_can_modify_control_flow {
50255025
compile_time_heap.clear();
50265026
}
50275027
}

0 commit comments

Comments
 (0)