Skip to content

[DAG] Fold AVGU(ZEXT(X),ZEXT(Y)) -> ZEXT(AVGU(X,Y)) #86301

@RKSimon

Description

@RKSimon

This works for AVGCEILU and AVGFLOORU: https://alive2.llvm.org/ce/z/ea-m5Y

If the pre-extended AVGCEILU/AVGFLOORU node is legal, then we should perform the operation with the shorter width and then extend afterward.

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