Skip to content

[InstCombine] Break down aggregate phi if only used in inserts/extracts #136107

Open
@alex-s168

Description

@alex-s168

https://godbolt.org/z/bxs4zvWj7

I don't know if that is supposed to be like this for some reason, but it could just be simplified to:

i64 fn(i64* ptr, i64 len) {
  return (len == 0) ? 1 : ptr[0]
}

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