Skip to content

[KnownBits] Remove hasConflict() assertions #94436

Closed
@nikic

Description

@nikic

The KnownBits infrastructure currently has pervasive !hasConflict() assertions, which ensure that KnownBits don't claim that a bit is both zero and one at the same time. However, these kinds of conflicts can naturally arise whenever the value is known to be poison. At this point, these assertions no longer provide value and just result in a steady stream of compiler crashes.

We should remove these assertions. Once that is done, we may also make use of conflicting KnownBits to fold values to poison.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-cleanupgood first issuehttps://github.com/llvm/llvm-project/contributellvmUmbrella label for LLVM issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions