Repository navigation
JIT: True branch not executed #124507
Copy link
Copy link
Closed
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Milestone
Description
Activity
- addeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Feb 17, 2026 - addedarea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
on Feb 17, 2026 dotnet-policy-service commented
on Feb 17, 2026 ContributorMore actionsTagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.- removeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Feb 17, 2026 Probably same issue:
// Generated by Fuzzlyn v3.3 on 2026-02-28 17:41:56 // Run on Arm Linux // Seed: 4947552585052090314 // Reduced from 335.1 KiB to 0.5 KiB in 00:04:35 // Debug: Prints 0 line(s) // Release: Prints 1 line(s) public class C0 { public ushort F7; } public class Program { public static void Main() { C0 vr5 = new C0(); M9(vr5); } public static void M9(C0 argThis) { bool var0 = !(1 != argThis.F7); bool var15 = var0; if (var0) { var0 = true; } if (!var15) { if (var0) { sbyte vr7 = default(sbyte); System.Console.WriteLine(vr7); } } } }
Copilot says:
The real issue is that `optGetEdgeAssertions` is returning assertions for an edge that no longer exists—after RBO redirected BB01's true target from BB03 to BB04, the function still returns the old assertions instead of recognizing the edge is gone. I need to add a check in `optVisitReachingAssertions` to verify that each PHI predecessor block is actually still a predecessor before using its assertions.Yeah I also had a copilot run on this, not sure I agree with its analysis (or at least with whatever I had locally). It does feel like
optVisitReachingAssertionsis the culprit and my PR that you highlighted just uncover the bug for. But copilot seems to focus on unreachable Phi args as the issue- added a commit that references this issue
on Mar 4, 2026 - locked and limited conversation to collaborators
on Apr 4, 2026
Metadata
Metadata
Assignees
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Bisected to/exposed by #123856, cc @EgorBo