Skip to content

Add CSEPass to default edge lowering passes (#19861)#19861

Open
pssrawat wants to merge 1 commit into
pytorch:mainfrom
pssrawat:export-D106585672
Open

Add CSEPass to default edge lowering passes (#19861)#19861
pssrawat wants to merge 1 commit into
pytorch:mainfrom
pssrawat:export-D106585672

Conversation

@pssrawat
Copy link
Copy Markdown
Contributor

@pssrawat pssrawat commented May 28, 2026

Summary:

Move CSEPass into the default edge
lowering pipeline so callers do not need to opt in individually.

Changes:

  1. executorch/exir/program/_program.py: prepend CSEPass() to the pass
    list built by edge_to_executorch_passes(), before *config.passes.
    This re-runs CSE at the edge -> executorch boundary (matching where
    export_llm_backbone.py runs it manually today) so that any new
    redundancies introduced by user-supplied or downstream passes are
    also deduped.

Differential Revision: D106585672

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 28, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19861

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ You can merge normally! (2 Unrelated Failures)

As of commit 6cb3f9c with merge base 42581f1 (image):

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 28, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 28, 2026

@pssrawat has exported this pull request. If you are a Meta employee, you can view the originating Diff in D106585672.

@pssrawat pssrawat added the release notes: none Do not include this in the release notes label May 28, 2026
Summary:

Move CSEPass into the default edge
lowering pipeline so callers do not need to opt in individually.

Changes:
1. executorch/exir/program/_program.py: prepend CSEPass() to the pass
   list built by edge_to_executorch_passes(), before *config.passes.
   This re-runs CSE at the edge -> executorch boundary (matching where
   export_llm_backbone.py runs it manually today) so that any new
   redundancies introduced by user-supplied or downstream passes are
   also deduped.

Differential Revision: D106585672
@meta-codesync meta-codesync Bot changed the title Add CSEPass to default edge lowering passes Add CSEPass to default edge lowering passes (#19861) May 28, 2026
@pssrawat pssrawat force-pushed the export-D106585672 branch from 034c202 to 6cb3f9c Compare May 28, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant