Skip to content

[DAG] SDPatternMatch - extend MinMax matchers to detect flippable signed/unsigned cases #174328

@RKSimon

Description

@RKSimon

Blocked by #174327

The m_SMaxLike/m_SMinLike/m_UMaxLike/m_UMinLike matchers can be extended to match the unsigned/signed equivalents if the operand signbits are known to be both zero or one.

You will have to investigate the best approach, but this can probably best be achieved by using the m_Negative/m_StrictlyPositive/m_NonNegative/m_NonPositive matchers proposed from #174327, extending the MinMaxLike matchers with additional patterns that include them.

Related to #174325

Metadata

Metadata

Assignees

Labels

good first issuehttps://github.com/llvm/llvm-project/contributellvm:SelectionDAGSelectionDAGISel as well

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions