Skip to content

Commit da7900c

Browse files
authored
Revert "Increase cost of ARR_LENGTH node to match IND(ADD(..,CNS)) (#117531)" (#118707)
This reverts commit 5c17036.
1 parent a2b21c4 commit da7900c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/coreclr/jit/gentree.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5541,9 +5541,9 @@ unsigned Compiler::gtSetEvalOrder(GenTree* tree)
55415541
case GT_MDARR_LOWER_BOUND:
55425542
level++;
55435543

5544-
// Array meta-data access should be the same as an IND(ADD(ADDR, SMALL_CNS)).
5545-
costEx = IND_COST_EX + 1;
5546-
costSz = 2 * 2;
5544+
// Array meta-data access should be the same as an indirection, which has a costEx of IND_COST_EX.
5545+
costEx = IND_COST_EX - 1;
5546+
costSz = 2;
55475547
break;
55485548

55495549
case GT_BLK:

0 commit comments

Comments
 (0)