Skip to content

[DAG] Refactor X86 combineVSelectWithAllOnesOrZeros fold into a generic DAG Combine #144513

@RKSimon

Description

@RKSimon

combineVSelectWithAllOnesOrZeros folds vselect(cond, 0/-1, X) and vselect(cond, X, 0/-1) style patterns into logic operations when the cond is the same width and ZeroOrNegativeOneBooleanContent

We should be able to perform this generically in DAGCombiner (with suitable freezing which seems to be missing from the x86 version)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions