Skip to content

[DAG] computeKnownBits - ISD::ABS is zero in the high bits if the input has multiple sign bits #94344

Closed
@RKSimon

Description

@RKSimon

Alive2: https://alive2.llvm.org/ce/z/a87fHU

If the absolute value input is sign extended, then the absolute result is guaranteed to be zero in the (NumSignBits - 1) upper bits.

ISD::ABDS should be similar as well.

Noticed while working on #92576

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions