Skip to content

[AMDGPU] CodeGen regressions after #154336 #164779

@jayfoad

Description

@jayfoad

#154336 causes performance regressions in a few of our graphics benchmarks. From staring at some large before-and-after shader dumps it seems that the slower shaders simply have more computational instructions in them (v_mul_f32, v_fme_f32 and similar). I tried automatically reducing a test case and came up with: r.txt

$ opt -S -p=instcombine,scalarizer,instcombine < r.txt

Before #154336, all the math is removed and the function just returns poison. After #154336, none of the math is removed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions