Commit 7a4d15b
Github Executorch
Remove legacy transform_for_cortex_m_backend and --enable_qdq_fusion_pass flag
Summary:
Remove the transform_for_cortex_m_backend() function and the --enable_qdq_fusion_pass CLI flag from aot_arm_compiler.py. The function applied Cortex-M passes as a post-hoc step to all non-VGF targets, which made the compilation flow hard to follow and coupled the delegation path to Cortex-M-specific logic.
Instead, ReplaceQuantNodesPass is now applied directly inside to_edge_TOSA_delegate() to handle any boundary quantized_decomposed::* nodes that remain outside the delegated subgraph. This makes the delegation path self-contained and explicit about its runtime requirements.
This change is in preparation for an upcoming PR (#17075) that introduces Cortex-M as a first-class compilation target with its own dedicated pipeline, including CortexMQuantizer and CortexMPassManager.1 parent eef30fd commit 7a4d15b
1 file changed
Lines changed: 14 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 41 | | |
50 | 42 | | |
51 | 43 | | |
| |||
206 | 198 | | |
207 | 199 | | |
208 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
209 | 207 | | |
210 | 208 | | |
211 | 209 | | |
| |||
603 | 601 | | |
604 | 602 | | |
605 | 603 | | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | 604 | | |
612 | 605 | | |
613 | 606 | | |
| |||
787 | 780 | | |
788 | 781 | | |
789 | 782 | | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
790 | 787 | | |
791 | 788 | | |
792 | 789 | | |
| |||
822 | 819 | | |
823 | 820 | | |
824 | 821 | | |
825 | | - | |
826 | | - | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
827 | 825 | | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
| 826 | + | |
846 | 827 | | |
847 | 828 | | |
848 | 829 | | |
| |||
885 | 866 | | |
886 | 867 | | |
887 | 868 | | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | 869 | | |
894 | 870 | | |
895 | 871 | | |
| |||
0 commit comments