- 
                Notifications
    
You must be signed in to change notification settings  - Fork 5.2k
 
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 SuperPMIhelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Milestone
Description
Minimal repro:
public static void X(int value)
{
    while (true)
    {
        value -= 16;
        if (value <= 0) 
            break;
    }
}coreclr trunk-20250720+5630010c13adad214fc369a365d0225d4b207ec6:
G_M42956_IG03:  ;; offset=0x0004
       add      edi, -16
       test     edi, edi ; <-- flags already set by ADD
       jg       SHORT G_M42956_IG03Expected:
G_M42956_IG03:  ;; offset=0x0004
       add      edi, -16
       jg       SHORT G_M42956_IG03Metadata
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 SuperPMIhelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors