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 dotnet#45557 for arm/arm64

Fixes dotnet#46023
  • Loading branch information
BruceForstall committed Dec 16, 2020
1 parent a7c889a commit f9f57d1
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
@@ -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);
}
}

3 changes: 3 additions & 0 deletions src/coreclr/jit/codegenarm64.cpp
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit f9f57d1

Please sign in to comment.