You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Perf] Linux/arm64: 2 Regressions on 6/2/2026 2:34:36 PM +00:00 #128996
Summary: Verified regression in ImmutableList(Size: 512) — caused by commit a2ec76b ("JIT: add profitability heuristic for loop cloning (#128870)"). ⚠️ Note: Historical data shows bimodal behavior — bisection result may be unreliable.
🤖 Proposed Next Actions: Uncertain — flag for re-triage — 2 proposed (rule R5_look_again — see Full Analysis for the table).
📊 Full Analysis (click to expand)
Summary: Clear regression in System.Collections.ContainsTrue.ImmutableList (+18.3%, z=3.41) attributed to commit a2ec76b which adds a loop cloning profitability heuristic that may reject previously-cloned loops. Finding confidence 4/5 (298 historical runs, strong statistical baseline), regression confidence 4/5 (exact timestamp match, step change, direct JIT loop optimization path). The List test shows pre-existing drift rather than a new regression from this commit range.
Assessment: Step change. All 6 after-values cluster tightly at 447–451 μs vs recent before-values near 376 μs. Note: historical before-values are bimodal (~375k and ~443k ns clusters) but recent tail was stable at the lower cluster.
Rationale: This commit adds a profitability gate (optCloningHeuristic) that can reject loop cloning candidates with insufficient per-call benefit ratio. ImmutableList.Contains traverses an AVL tree using an iterative enumerator pattern with loops. If the loop body was previously cloned (e.g., to eliminate type/bounds checks in the iteration) and is now rejected by the new heuristic (body nodes exceed benefit threshold), the resulting unoptimized loop would be significantly slower. The commit timestamp (2026-06-02T14:34:36) is an exact match to the regression date. The +18% regression magnitude is consistent with losing loop cloning optimization on a tight iteration loop.
Assessment: Drift pattern. Historical analysis shows the before-series was already elevated (earlyBeforeMean ~28.88 μs vs recentBeforeMean ~30.86 μs). The compare value (31.13 μs) is only ~0.9% above the recent before mean, indicating most of the regression occurred within the before window and predates the compare commit.
Regression Confidence: 2/5 - While statistically above threshold, the drift predates this commit range. The compare value merely continues an already-elevated plateau.
Likely Cause: Pre-existing drift; root cause likely predates baseline commit
Affected Areas: JIT / Collections / List iteration
Stack Relevance: Unknown (cause predates this range)
Rationale: The drift began in the before-series (values jumped from ~28.6 μs to ~30.8 μs around indices 73–87 in historical data). The compare run continues this elevated plateau rather than introducing a new step. The root cause is outside the current commit range.
Candidates Considered: None within this range are strong candidates given the drift pattern.
Verification Status: Not verified
Open Questions
Historical Data: Bimodal distribution in ImmutableList before-values (~375k and ~443k ns clusters) inflates variance; recent values were stable at lower cluster before stepping to higher level
Confidence Limitations: Loop cloning attribution is based on mechanism analysis (not yet verified via RunWithBuildAtHash); the new heuristic's rejection of specific loops needs confirmation
Verification Needed: Run ImmutableList benchmark at baseline and compare commits to confirm regression reproduces; optionally set JitCloneLoopsMinPerCallRatio=0 to disable heuristic and verify it restores performance
Bisection Status: Not performed (single high-confidence candidate identified via exact timestamp match)
Recommended Actions
Verify regression: Run RunWithBuildAtHash on commits 0dfd787f3c16 and a2ec76b0691e with System.Collections.ContainsTrue<Int32>.ImmutableList(Size: 512) to confirm the loop cloning heuristic commit is the cause
JIT dump analysis: Collect JIT dumps with JitCloneLoopsMinPerCallRatio=0 vs default to confirm loop cloning is being rejected for the ImmutableList iteration loop
Heuristic tuning: If confirmed, consider adjusting JitCloneLoopsMinPerCallRatio threshold or adding an exception for tree-traversal patterns in ImmutableList
List drift: Investigate separately; the List regression predates this commit range and requires looking at earlier commits (around 73–87 runs before regression date)
Explanation: This commit adds a new JIT loop cloning profitability heuristic that can reject loop cloning candidates. The ImmutableList.Contains benchmark iterates through a list, and if the new heuristic rejects a previously-cloned loop, bounds-check elimination is lost, directly causing the ~18% regression in iteration performance.
The culprit is clearly identified. This is a JIT loop cloning heuristic change that could reject loop cloning opportunities previously beneficial for the ImmutableList iteration.
BISECTION RESULT:
- Culprit Commit: a2ec76b0691e5911908b7617f9c42d3654ef6988
- Commit Message: JIT: add profitability heuristic for loop cloning (#128870)
- Commits Tested: 8
- Confidence: 4
- Commit Relevance: RELATED
- Relevance Explanation: This commit adds a new JIT loop cloning profitability heuristic that can reject loop cloning candidates. The ImmutableList.Contains benchmark iterates through a list, and if the new heuristic rejects a previously-cloned loop, bounds-check elimination is lost, directly causing the ~18% regression in iteration performance.
- Baseline Value: 378277.03 ns
- Culprit Value: 447180.77 ns
- Summary: Bisected 33 commits in 3 Helix jobs. The regression appeared cleanly at commit a2ec76b0 (index 19), with the immediately preceding commit (4832002f) measuring at baseline. The step change is sharp and consistent across multiple regressed commits.
HELIX JOBS:
- 9045667a-8546-42e5-a68e-1fd3d82a7257
- 6486ad99-6108-46fa-b4e5-c358dcdb79df
- 1ccd7f05-73a5-4c4c-97eb-fa0db74a1a4b
MEASUREMENTS:
- 1feea2b915150fb6a8e20373897fa83e1b945d64 (index 8): 375268.28 ns
- 07fc3e76e84c80c49b1c75ec5e2d8e05b2c24113 (index 16): 374883.22 ns
- 7dc7499c8e5c223e38dfaea754b26eaa45afc3b3 (index 17): 377446.14 ns
- 4832002fd28748322015287b8fb3b8126334865f (index 18): 378277.03 ns
- a2ec76b0691e5911908b7617f9c42d3654ef6988 (index 19): 447180.77 ns
- b836f4b9a12587928ee19487f793510f575ab347 (index 21): 421924.14 ns
- 0701fbf3ec5bf3853727fe5da48b5032acac9c26 (index 23): 449781.20 ns
- a4461ef220fee765e5b632178b8f935625f7077e (index 24): 446949.64 ns
No step change is visible — the baseline itself measures at the same level as all "regressed" commits. The reported 8.6% regression is not reproducible with the default tiered-JIT configuration on this queue.
BISECTION FAILED:
- Reason: No observable step change across the entire commit range; baseline commit measures at the same level as all subsequent commits
- Helix Errors: None — all jobs completed successfully
- What was attempted: Tested 10 commits across 4 Helix jobs (ce3d7348-ef66-4a25-bea2-b1ff525f01db, 06f72c0a-8a7c-4fac-ad86-fb96b5f4aed5, 7436ee74-6e76-40a9-9b0b-6411d4c026e9, 6f6c1e0b-e774-45a0-89e1-3078db3276d7). All measurements fall within 30,607–31,065 ns (~1.5% spread), with no discernible regression step. The baseline commit (0dfd787f3c16) itself measures 31,064.61, indistinguishable from the "regressed" commits.
- What is needed: The regression may only manifest under a specific run configuration not reproducible by the bisection harness, or the autofile's reported values are from a different measurement methodology. Manual investigation or re-running with the exact autofile configuration is needed.
HELIX JOBS:
- ce3d7348-ef66-4a25-bea2-b1ff525f01db
- 06f72c0a-8a7c-4fac-ad86-fb96b5f4aed5
- 7436ee74-6e76-40a9-9b0b-6411d4c026e9
- 6f6c1e0b-e774-45a0-89e1-3078db3276d7
MEASUREMENTS:
- 0dfd787f3c16 (baseline): 31064.61 ns
- 1dffd7eb11f1 (commit 1, run 1): 30774.42 ns
- 1dffd7eb11f1 (commit 1, run 2): 31012.48 ns
- f2f70d9375fa (commit 2): 30748.60 ns
- e9e3c8dbc927 (commit 3): 30671.26 ns
- aef0e2b2a06c (commit 5): 30606.97 ns
- 41a0abd2e427 (commit 7): 30754.12 ns
- 1feea2b91515 (commit 9): 30958.85 ns
- 07fc3e76e84c (commit 17): 30771.61 ns
- a4461ef220fe (commit 25): 30636.00 ns
🤖 Proposed Next Actions
Rule: R5_look_again — Uncertain — flag for re-triage.
Bimodal benchmark history — bisection results would be unreliable, so the cause is not auto-classified as known. Revisit once more historical data is available.
#
Action
Status
Details
1
Add label
🕒 Planned
look-again
2
Remove label
🕒 Planned
untriaged
Generated by PerfTriageAgent on 2026-06-04 09:34 UTC
Activity
LoopedBard3 commentedon Jun 4, 2026
🔍 Automated Triage Analysis
Summary: Verified regression in ImmutableList(Size: 512) — caused by commit a2ec76b ("JIT: add profitability heuristic for loop cloning (#128870)").⚠️ Note: Historical data shows bimodal behavior — bisection result may be unreliable.
Finding Confidence: 3/5 (analysis accuracy)
Regression Confidence: 3/5 (likelihood of true regression)
Likely Cause: a2ec76b0691e5911908b7617f9c42d3654ef6988
🤖 Proposed Next Actions: Uncertain — flag for re-triage — 2 proposed (rule
R5_look_again— see Full Analysis for the table).📊 Full Analysis (click to expand)
Summary: Clear regression in System.Collections.ContainsTrue.ImmutableList (+18.3%, z=3.41) attributed to commit a2ec76b which adds a loop cloning profitability heuristic that may reject previously-cloned loops. Finding confidence 4/5 (298 historical runs, strong statistical baseline), regression confidence 4/5 (exact timestamp match, step change, direct JIT loop optimization path). The List test shows pre-existing drift rather than a new regression from this commit range.
Issue Overview
Test Analysis
Legend: μ=mean, σ=stddev, n=runs, z=z-score, Thresh%=adaptive threshold
Finding Confidence: 4/5 - Excellent historical data (298 runs), sufficient after-runs (6) with tight clustering, strong statistical baselines for both tests.
Candidate Stack Relevance
src/coreclr/jit/loopcloning.cpp,src/coreclr/jit/compiler.h,src/coreclr/jit/jitconfigvalues.hsrc/coreclr/vm/arm64/asmhelpers.S,src/coreclr/vm/stackwalk.cpp, unwindersrc/coreclr/jit/morph.cppsrc/coreclr/vm/virtualcallstub.cppsrc/coreclr/jit/fginline.cpp,src/coreclr/jit/compiler.cppConfirmed Regressions
System.Collections.ContainsTrue.ImmutableList(Size: 512) (+18.28%)
optCloningHeuristic) that can reject loop cloning candidates with insufficient per-call benefit ratio. ImmutableList.Contains traverses an AVL tree using an iterative enumerator pattern with loops. If the loop body was previously cloned (e.g., to eliminate type/bounds checks in the iteration) and is now rejected by the new heuristic (body nodes exceed benefit threshold), the resulting unoptimized loop would be significantly slower. The commit timestamp (2026-06-02T14:34:36) is an exact match to the regression date. The +18% regression magnitude is consistent with losing loop cloning optimization on a tight iteration loop.System.Collections.ContainsTrue.List(Size: 512) (+8.61%)
Open Questions
JitCloneLoopsMinPerCallRatio=0to disable heuristic and verify it restores performanceRecommended Actions
RunWithBuildAtHashon commits 0dfd787f3c16 and a2ec76b0691e withSystem.Collections.ContainsTrue<Int32>.ImmutableList(Size: 512)to confirm the loop cloning heuristic commit is the causeJitCloneLoopsMinPerCallRatio=0vs default to confirm loop cloning is being rejected for the ImmutableList iteration loopJitCloneLoopsMinPerCallRatiothreshold or adding an exception for tree-traversal patterns in ImmutableListBisection Results
Total bisection time: 2418s
Success rate: 1/2 tests
System.Collections.ContainsTrue.ImmutableList(Size: 512)
Helix jobs
9045667a-8546-42e5-a68e-1fd3d82a72576486ad99-6108-46fa-b4e5-c358dcdb79df1ccd7f05-73a5-4c4c-97eb-fa0db74a1a4bPer-commit measurements
1feea2b9151507fc3e76e84c7dc7499c8e5c4832002fd287a2ec76b0691eb836f4b9a1250701fbf3ec5ba4461ef220feBisection details
…[earlier output omitted]
1908b7617f9c42d3654ef6988`. Let me examine this commit.
● get_single_commit_summary (MCP: PerfTriageMcp) · owner: "dotnet", repo: "runtime", sha: "a2ec76b0…
└ {"index":null,"sha":"a2ec76b0691e5911908b7617f9c42d3654ef6988","abbrevSh...
The culprit is clearly identified. This is a JIT loop cloning heuristic change that could reject loop cloning opportunities previously beneficial for the ImmutableList iteration.
System.Collections.ContainsTrue.List(Size: 512)
Helix jobs
ce3d7348-ef66-4a25-bea2-b1ff525f01db06f72c0a-8a7c-4fac-ad86-fb96b5f4aed57436ee74-6e76-40a9-9b0b-6411d4c026e96f6c1e0b-e774-45a0-89e1-3078db3276d7Per-commit measurements
0dfd787f3c161dffd7eb11f1f2f70d9375fae9e3c8dbc927aef0e2b2a06c41a0abd2e4271feea2b9151507fc3e76e84ca4461ef220feBisection details
…[earlier output omitted]
All measurements collected:
No step change is visible — the baseline itself measures at the same level as all "regressed" commits. The reported 8.6% regression is not reproducible with the default tiered-JIT configuration on this queue.
🤖 Proposed Next Actions
Rule:
R5_look_again— Uncertain — flag for re-triage.Bimodal benchmark history — bisection results would be unreliable, so the cause is not auto-classified as known. Revisit once more historical data is available.
look-againuntriagedGenerated by PerfTriageAgent on 2026-06-04 09:34 UTC
DrewScoggins commentedon Jun 4, 2026
Seems related to #128870. Was found with bisection, but only found the regression for the ImmutableList case.
dotnet-policy-service commentedon Jun 4, 2026
Tagging subscribers to this area: @dotnet/area-system-collections
See info in area-owners.md if you want to be subscribed.
AndyAyersMS commentedon Jun 4, 2026
System.Collections.ContainsTrue<Int32>.List(Size: 512)seems to be windows ampere only, so possibly noise. It regressed on linux ampere back on 5/28.System.Collections.ContainsTrue<Int32>.ImmutableList(Size: 512)looks like it may repro more broadly, eg green is windows-x64-amd...JIT: weight loop body cost by block frequency in cloning heuristic (#…
JIT: weight loop body cost by block frequency in cloning heuristic (#…
JIT: weight loop body cost by block frequency in cloning heuristic (d…