Skip to content

possible optimization: convert ui2fp into a select instr if i1 type is used #11631

@llvmbot

Description

@llvmbot
Bugzilla Link 11259
Version trunk
OS Windows NT
Reporter LLVM Bugzilla Contributor
CC @efriedma-quic

Extended Description

when calling si2fp or ui2fp and the input number is of type i1, it is possible to convert it to a select (i1 %c, 0, -1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions