Skip to content

[DAG] SDPatternMatch - add m_SelectCCLike(L,R,T,F,CC) matcher #147282

Open
@RKSimon

Description

@RKSimon

Depending on target / legalisation / previous combines we might have a select(setcc(l,r,cc),t,f) or selectcc(l,r,t,f,cc) node - ideally we need to match both with a single m_SelectCCLike matcher:

https://github.com/llvm/llvm-project/blob/6daf2b956d0b805cb5b617170d137fecc33b062c/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp#L4446-L4458

Metadata

Metadata

Labels

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

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions