Skip to content

AMDGPU fails to fold out useless half of 64-bit or #124099

@arsenm

Description

@arsenm

In some tests I see this pattern appear:

        t334: v2i32 = BUILD_VECTOR Constant:i32<0>, t258
      t335: i64 = bitcast t334
    t188: i64 = or # D:1 t342, t335

We should be able to do a 32-bit or and drop the operation on the 0 bits. The same applies for other identity value elements, like -1 with and. This is similar to 09583de, except it's a variable case (and for or, instead of add/sub)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions