Skip to content

[DAG] SDPatternMatch m_Zero/m_One/m_AllOnes have inconsistent undef handling #146871

@RKSimon

Description

@RKSimon

m_Zero/m_One uses ISD::isConstantSplatVector which allows undefs in the BUILD_VECTOR node by default
m_AllOnes uses isAllOnesOrAllOnesSplat which doesn't allow undefs in the BUILD_VECTOR node by default

All of these need to be consistent with their default and with/without undefs handling to be configurable

This needs to be handled in conjunction with #140745 which will revise m_Zero handling to be closed to m_AllOnes

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