Skip to content

Missed optimization for dce because of mis constant propagation #101

Open
@ZY546

Description

@ZY546

https://godbolt.org/z/KPM8cfGoG

int m;
void func(short a, short b) {
    short f = 1;
    if(
    (f ? ((a ? b : 0) ? 1 : 0) : 0)
    -
    (f ? ((a ? b : 0) ? 1 : 0) : 0)
    ){ 
        m=1;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions