Skip to content

Commit

Permalink
[release/5.0] Add variable lifetime update for GT_STOREIND for arm/ar…
Browse files Browse the repository at this point in the history
…m64 (#46206)

Port #46059 to release/5.0

Fix #45557 for arm/arm64

Fixes #46023
  • Loading branch information
BruceForstall committed Jan 14, 2021
1 parent 93820c8 commit 6e68f26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coreclr/src/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/src/jit/codegenarm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3233,6 +3233,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 6e68f26

Please sign in to comment.