Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/mono/mono/mini/interp/transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -9057,9 +9057,12 @@ interp_cprop (TransformData *td)
if (num_dregs) {
// Check if the previous definition of this var was used at all.
// If it wasn't we can just clear the instruction
//
// MINT_MOV_DST_OFF doesn't fully write to the var, so we special case it here
if (local_defs [dreg].ins != NULL &&
local_defs [dreg].ref_count == 0 &&
!td->locals [dreg].indirects) {
!td->locals [dreg].indirects &&
opcode != MINT_MOV_DST_OFF) {
InterpInst *prev_def = local_defs [dreg].ins;
if (MINT_NO_SIDE_EFFECTS (prev_def->opcode)) {
for (int i = 0; i < mono_interp_op_sregs [prev_def->opcode]; i++)
Expand Down