Skip to content

Commit

Permalink
Ensure simdTmpVar is inserted into the IR
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding committed Dec 12, 2024
1 parent bfa2fee commit 1acd2f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/coreclr/jit/decomposelongs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1881,12 +1881,17 @@ GenTree* DecomposeLongs::DecomposeHWIntrinsicMoveMask(LIR::Use& use, GenTreeHWIn

if (varTypeIsByte(simdBaseType))
{
// Create:
// simdTmpVar = op1

GenTree* simdTmpVar = RepresentOpAsLocalVar(op1, node, &node->Op(1));
unsigned simdTmpVarNum = simdTmpVar->AsLclVarCommon()->GetLclNum();
JITDUMP("[DecomposeHWIntrinsicMoveMask]: Saving op1 tree to a temp var:\n");
DISPTREERANGE(Range(), simdTmpVar);
Range().Remove(simdTmpVar);

Range().InsertBefore(node, simdTmpVar);

// Create:
// simdTmpLo = GT_HWINTRINSIC{GetLower}(simdTmpVar)
// loResult = GT_HWINTRINSIC{MoveMask}(simdTmpLo)
Expand Down

0 comments on commit 1acd2f9

Please sign in to comment.