Skip to content

Expand all affine applies before and during Flow - #21169

Merged
qedawkins merged 2 commits into
iree-org:mainfrom
qedawkins:expand_flow_affine
Jun 24, 2025
Merged

qedawkins merged 2 commits into
iree-org:mainfrom
qedawkins:expand_flow_affine

Conversation

@qedawkins

Copy link
Copy Markdown
Contributor

The mix of affine + arith operations generated at Flow and earlier hinders folding/canonicalization opportunities, so it's best for us to pick one to use. This picks arith over affine since it is easier to go from affine -> arith rather than the other way, and it composes better with dialects like Util.

The mix of affine + arith operations generated at Flow and earlier
hinders folding/canonicalization opportunities, so it's best for us to
pick one to use. This picks arith over affine since it is easier to go
from affine -> arith rather than the other way, and it composes better
with dialects like Util.
@qedawkins
qedawkins force-pushed the expand_flow_affine branch from 5e5d9c5 to 03737c4 Compare June 24, 2025 18:50
@qedawkins
qedawkins enabled auto-merge (squash) June 24, 2025 20:11
@qedawkins
qedawkins merged commit e601ec8 into iree-org:main Jun 24, 2025
@qedawkins
qedawkins deleted the expand_flow_affine branch June 24, 2025 20:59
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
The mix of affine + arith operations generated at Flow and earlier
hinders folding/canonicalization opportunities, so it's best for us to
pick one to use. This picks arith over affine since it is easier to go
from affine -> arith rather than the other way, and it composes better
with dialects like Util.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants