Skip to content

[Mlir] Skip default schedule for linalg.fill - #63

Open
ElectrikSpace wants to merge 1 commit into
xtc-tools:mainfrom
ElectrikSpace:dev/snoiry/mlir_skip_fill
Open

[Mlir] Skip default schedule for linalg.fill#63
ElectrikSpace wants to merge 1 commit into
xtc-tools:mainfrom
ElectrikSpace:dev/snoiry/mlir_skip_fill

Conversation

@ElectrikSpace

Copy link
Copy Markdown
Contributor

Do not schedule the initialization operation linalg.fill, which is not controllable by the user.

Motivation

The default schedule applied can overconstraint lowering passes trying to fuse/optimize it.

Description

Based on the naming convention of Mlir nodes, skip the scheduling of the node corresponding to the linalg.fill.

Commits

Single commit

Discussion

What do you think ?

@ElectrikSpace
ElectrikSpace requested a review from qaco March 6, 2026 16:51
@ElectrikSpace
ElectrikSpace force-pushed the dev/snoiry/mlir_skip_fill branch from 54d6356 to e404b60 Compare March 11, 2026 15:11
@ElectrikSpace

Copy link
Copy Markdown
Contributor Author

rebase done

@liamsemeria

Copy link
Copy Markdown
Contributor

just wanted to note that this is compatible with fusion since fusion ignores fused producer handles including fills.

@ElectrikSpace
ElectrikSpace force-pushed the dev/snoiry/mlir_skip_fill branch from 3c39731 to a63ca4b Compare April 30, 2026 13:00

@qaco qaco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok but at some point in the future I think we should be able to schedule the fill

@liamsemeria

Copy link
Copy Markdown
Contributor

Ok but at some point in the future I think we should be able to schedule the fill

I think the main reason that we're not scheduling the fill is so that we can fuse them into the main op

@ElectrikSpace

Copy link
Copy Markdown
Contributor Author

Exactly, I have a pass in SDist that fuse the fill op with the next op. (mandatory to have descent perf in my case).

  • rebase done

Do not schedule the initialization operation linalg.fill, which is not
controllable by the user. The default schedule applied can overconstraint
lowering passes trying to fuse/optimize it.
@ElectrikSpace
ElectrikSpace force-pushed the dev/snoiry/mlir_skip_fill branch from 5546481 to 6b4261c Compare August 12, 2026 09:36
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ElectrikSpace ElectrikSpace assigned qaco and unassigned ElectrikSpace Aug 13, 2026
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.

3 participants