Skip to content

Commit df126ba

Browse files
committed
Constrain the CHECK pattern more to prevent it from triggering on incidental inlinings.
The issue is that this test expression can trigger compilation of dependencies if they're not already in the Dex cache, which in turn will log their inlining passes. None of those seem to have for loops, however.
1 parent 339117f commit df126ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/inline-tests.dx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ def id'(x:Nat) -> Nat = x
103103
Right k -> 2
104104
for j:(Fin 3). xs[Left j]
105105
-- CHECK: === inline ===
106+
-- CHECK: for
106107
-- CHECK: case
107108
-- CHECK: === inline ===
109+
-- CHECK: for
108110
-- CHECK-NOT: case
109111

110112
-- CHECK-LABEL: Inlining carries out the case-of-case optimization

0 commit comments

Comments
 (0)