Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit c903f7b

Browse files
author
Sergey Andreenko
authored
[RyuJit][x86] another forgotten case with unused flag in decomposition.
rotate nodes are rare, so it why we did not see it.
1 parent 72e751c commit c903f7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/jit/decomposelongs.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,6 +1553,11 @@ GenTree* DecomposeLongs::DecomposeRotate(LIR::Use& use)
15531553
gtLong->gtOp.gtOp1 = loResult;
15541554
gtLong->gtOp.gtOp2 = hiResult;
15551555

1556+
if (tree->IsUnusedValue())
1557+
{
1558+
gtLong->SetUnusedValue();
1559+
}
1560+
15561561
GenTree* next = tree->gtNext;
15571562
// Remove tree and don't do anything else.
15581563
Range().Remove(tree);

0 commit comments

Comments
 (0)