Skip to content

Commit

Permalink
Add variable lifetime update for GT_STOREIND for arm/arm64
Browse files Browse the repository at this point in the history
Fix #45557 for arm/arm64

Fixes #46023
  • Loading branch information
BruceForstall committed Dec 16, 2020
1 parent a7c889a commit f9f57d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coreclr/jit/codegenarm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,9 @@ void CodeGen::genCodeForStoreInd(GenTreeStoreInd* tree)
}

GetEmitter()->emitInsLoadStoreOp(ins_Store(type), emitActualTypeSize(type), data->GetRegNum(), tree);

// If store was to a variable, update variable liveness after instruction was emitted.
genUpdateLife(tree);
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/coreclr/jit/codegenarm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3248,6 +3248,9 @@ void CodeGen::genCodeForStoreInd(GenTreeStoreInd* tree)
}

GetEmitter()->emitInsLoadStoreOp(ins, emitActualTypeSize(type), dataReg, tree);

// If store was to a variable, update variable liveness after instruction was emitted.
genUpdateLife(tree);
}
}

Expand Down

0 comments on commit f9f57d1

Please sign in to comment.