Commit d2fd7e6
Replace duplicated RemoveCloneOpPass with RemoveCloneOpsTransformImported (pytorch#16048)
Summary:
This change eliminates code duplication by replacing the local `RemoveCloneOpPass` implementation with the imported `RemoveCloneOpsTransformImported` from the executorch transforms module.
Previously, there were multiple implementations of the clone removal pass scattered across the codebase. This consolidation improves maintainability by ensuring a single source of truth for the clone removal optimization logic.
Reviewed By: DrJessop
Differential Revision: D881098621 parent 2551f30 commit d2fd7e6
1 file changed
+4
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
356 | 358 | | |
357 | 359 | | |
358 | 360 | | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | 361 | | |
373 | 362 | | |
374 | 363 | | |
| |||
925 | 914 | | |
926 | 915 | | |
927 | 916 | | |
928 | | - | |
929 | 917 | | |
930 | 918 | | |
931 | 919 | | |
| |||
934 | 922 | | |
935 | 923 | | |
936 | 924 | | |
| 925 | + | |
937 | 926 | | |
938 | 927 | | |
939 | 928 | | |
940 | 929 | | |
941 | 930 | | |
942 | 931 | | |
943 | | - | |
944 | 932 | | |
945 | 933 | | |
946 | 934 | | |
| |||
0 commit comments