Skip to content

[DAG] SDPatternMatch - match integer min/max patterns as well as the existing ISD nodes #108218

@RKSimon

Description

@RKSimon

We already have matchers for ISD::SMAX/SMIN/UMAX/UMIN nodes, but it'd be useful if we could match icmp+select patterns as well, preferably with the same existing m_SMax/m_SMin/m_UMax/m_UMin helpers.

This would be similar to the the IR PatternMatch MaxMin_match helpers which match the min/max intrinsics and the cmp+select patterns.

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