Skip to content

Commit f6e57c0

Browse files
committed
* switch from CheckImmedAndMakeContained to ContainCheckNode as it didn't contain the 31 in SAR(x, 31) on arm64 for some reason
1 parent ea86107 commit f6e57c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/coreclr/jit/lower.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4899,7 +4899,7 @@ GenTree* Lowering::TryLowerSelectToSarAdd(GenTreeConditional* select,
48994899

49004900
GenTree* shiftConst = m_compiler->gtNewIconNode(31, TYP_INT);
49014901
GenTree* sar = m_compiler->gtNewOperNode(GT_RSH, select->TypeGet(), relopOp1, shiftConst);
4902-
CheckImmedAndMakeContained(sar, shiftConst);
4902+
ContainCheckNode(sar);
49034903

49044904
BlockRange().InsertAfter(relopOp1, shiftConst);
49054905
BlockRange().InsertAfter(shiftConst, sar);
@@ -4910,7 +4910,7 @@ GenTree* Lowering::TryLowerSelectToSarAdd(GenTreeConditional* select,
49104910
{
49114911
GenTree* addConst = m_compiler->gtNewIconNode(falseValConst, select->TypeGet());
49124912
GenTree* add = m_compiler->gtNewOperNode(GT_ADD, select->TypeGet(), sar, addConst);
4913-
CheckImmedAndMakeContained(add, addConst);
4913+
ContainCheckNode(add);
49144914

49154915
BlockRange().InsertAfter(sar, addConst);
49164916
BlockRange().InsertAfter(addConst, add);

0 commit comments

Comments
 (0)