Skip to content

Batch cheap FX cleanups and defer post_lowering recompile - #4532

Open
micwill755 wants to merge 1 commit into
skip-aliased-fold-installfrom
batch-defer-fx-cleanup
Open

Batch cheap FX cleanups and defer post_lowering recompile#4532
micwill755 wants to merge 1 commit into
skip-aliased-fold-installfrom
batch-defer-fx-cleanup

Conversation

@micwill755

Copy link
Copy Markdown
Collaborator

Summary

  • Batch non-conflicting FX cleanups and defer DCE/lint/recompile to one flush at the end of post_lowering.
  • Keeps fuse_pad_into_convolution in the pass list.

PR 3 of 3 in a compile-startup stack; based on #4531.

Test plan

  • Flux / VLA compile still succeeds
  • post_lowering still applies assert removal, dead-user removal, and related cleanups
  • Pad-into-convolution fusion still runs on graphs that need it

…g flush.

Run non-conflicting node repairs together and skip repeated DCE/lint/recompile so post_lowering pays for cleanup once.
@meta-cla meta-cla Bot added the cla signed label Aug 19, 2026
@github-actions github-actions Bot added component: lowering Issues re: The lowering / preprocessing passes component: core Issues re: The core compiler component: api [Python] Issues re: Python API component: dynamo Issues relating to the `torch.compile` or `torch._dynamo.export` paths labels Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed component: api [Python] Issues re: Python API component: core Issues re: The core compiler component: dynamo Issues relating to the `torch.compile` or `torch._dynamo.export` paths component: lowering Issues re: The lowering / preprocessing passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant