Revert "Cortex_m backend: Simplify add + linear fusion passes" #15659
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reverts #15526
This breaks 8 internal tests:
buck test '@fbcode//mode/opt' fbcode//executorch/backends/cortex_m/test:test_replace_quant_nodes -- --exact 'executorch/backends/cortex_m/test:test_replace_quant_nodes - test_precomputed_parameters (executorch.backends.cortex_m.test.test_quantize_op_fusion_pass.TestQuantizedOpFusionPass)'
buck test '@fbcode//mode/opt' fbcode//executorch/backends/cortex_m/test:test_replace_quant_nodes -- --exact 'executorch/backends/cortex_m/test:test_replace_quant_nodes - test_multiple_add_fusion (executorch.backends.cortex_m.test.test_quantize_op_fusion_pass.TestQuantizedOpFusionPass)'
buck test '@fbcode//mode/opt' fbcode//executorch/backends/cortex_m/test:test_replace_quant_nodes -- --exact 'executorch/backends/cortex_m/test:test_replace_quant_nodes - test_single_add_fusion (executorch.backends.cortex_m.test.test_quantize_op_fusion_pass.TestQuantizedOpFusionPass)'
buck test '@fbcode//mode/opt' fbcode//executorch/backends/cortex_m/test:test_replace_quant_nodes -- --exact 'executorch/backends/cortex_m/test:test_replace_quant_nodes - test_different_tensor_shapes (executorch.backends.cortex_m.test.test_quantize_op_fusion_pass.TestQuantizedOpFusionPass)'
buck test '@fbcode//mode/opt' fbcode//executorch/backends/cortex_m/test:test_replace_quant_nodes -- --exact 'executorch/backends/cortex_m/test:test_replace_quant_nodes - test_mixed_fusion_pattern (executorch.backends.cortex_m.test.test_quantize_op_fusion_pass.TestQuantizedOpFusionPass)'
buck test '@fbcode//mode/opt' fbcode//executorch/backends/cortex_m/test:test_replace_quant_nodes -- --exact 'executorch/backends/cortex_m/test:test_replace_quant_nodes - test_aot_parameter_computation_accuracy (executorch.backends.cortex_m.test.test_quantize_op_fusion_pass.TestQuantizedOpFusionPass)'
buck test '@fbcode//mode/opt' fbcode//executorch/backends/cortex_m/test:test_replace_quant_nodes -- --exact 'executorch/backends/cortex_m/test:test_replace_quant_nodes - test_broadcastable_shapes (executorch.backends.cortex_m.test.test_quantize_op_fusion_pass.TestQuantizedOpFusionPass)'
buck test '@fbcode//mode/opt' fbcode//executorch/backends/cortex_m/test:test_replace_quant_nodes -- --exact 'executorch/backends/cortex_m/test:test_replace_quant_nodes - test_executorch_program_generation (executorch.backends.cortex_m.test.test_quantize_op_fusion_pass.TestQuantizedOpFusionPass)'
Please make sure these unit tests pass before re-landing.