Skip to content

Commit 2a907d6

Browse files
committed
Correcting a use of var vs precise var type.
1 parent e398408 commit 2a907d6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/coreclr/jit/gentree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25754,7 +25754,7 @@ GenTree* Compiler::gtNewSimdShuffleVariableNode(
2575425754
}
2575525755

2575625756
// the below is implemented for integral types
25757-
var_types origSimdBaseType = simdBaseType;
25757+
var_types origSimdBaseType = simdBaseType;
2575825758

2575925759
if (varTypeIsFloating(origSimdBaseType))
2576025760
{

src/coreclr/jit/lowerarmarch.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,8 @@ GenTree* Lowering::LowerHWIntrinsic(GenTreeHWIntrinsic* node)
16921692
if (isContainableMemory || !op2->OperIsConst())
16931693
{
16941694
unsigned simdSize = node->GetSimdSize();
1695-
var_types simdBaseType = node->GetSimdBaseType();
1695+
// todo-xarch-simd-vartypes: `simdBaseType` was originally used as a JitType2Var type below
1696+
var_types simdBaseType = node->GetSimdBaseTypeAsVarType();
16961697
var_types simdType = Compiler::getSIMDTypeForSize(simdSize);
16971698

16981699
// We're either already loading from memory or we need to since

0 commit comments

Comments
 (0)