summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jit/codegenlinear.cpp2
-rw-r--r--src/jit/lsra.cpp5
2 files changed, 1 insertions, 6 deletions
diff --git a/src/jit/codegenlinear.cpp b/src/jit/codegenlinear.cpp
index 59d08de9ce..f1a8d24258 100644
--- a/src/jit/codegenlinear.cpp
+++ b/src/jit/codegenlinear.cpp
@@ -735,7 +735,7 @@ void CodeGen::genSpillVar(GenTreePtr tree)
restoreRegVar = true;
}
- instruction storeIns = ins_Store(tree->TypeGet(), compiler->isSIMDTypeLocalAligned(varNum));
+ instruction storeIns = ins_Store(lclTyp, compiler->isSIMDTypeLocalAligned(varNum));
#if CPU_LONG_USES_REGPAIR
if (varTypeIsMultiReg(tree))
{
diff --git a/src/jit/lsra.cpp b/src/jit/lsra.cpp
index 09636f425a..28617b9583 100644
--- a/src/jit/lsra.cpp
+++ b/src/jit/lsra.cpp
@@ -9209,11 +9209,6 @@ void LinearScan::insertMove(
GenTreePtr src = compiler->gtNewLclvNode(lclNum, varDsc->TypeGet());
src->gtLsraInfo.isLsraAdded = true;
- if (varDsc->lvNormalizeOnStore())
- {
- src->gtType = TYP_INT;
- }
-
// There are three cases we need to handle:
// - We are loading a lclVar from the stack.
// - We are storing a lclVar to the stack.