Skip to content

Add combined RedundantOpReductionPass mirroring xcompiler exec() for QDQ models#784

Open
rachgupt-amd wants to merge 1 commit into
feature/onnx-to-tosafrom
add-redundant-op-reduction-pass
Open

Add combined RedundantOpReductionPass mirroring xcompiler exec() for QDQ models#784
rachgupt-amd wants to merge 1 commit into
feature/onnx-to-tosafrom
add-redundant-op-reduction-pass

Conversation

@rachgupt-amd
Copy link
Copy Markdown

Introduces a single -redundant-op-reduction func pass that runs the QDQ-relevant

sub-passes (merge-continuous-strided-slice, remove-continuous-transpose-with-reshape,

remove-semantically-useless-ops, remove-useless-qlinear-pool, convert-qdq-to-requantize,

convert-scast-pair-to-requantize, onnx-transpose-optimization, combine-transpose-pair,

canonicalize-with-result-names) in one go

eg : to add pass pm.addNestedPassfunc::FuncOp(onnx_mlir::createRedundantOpReductionPass())

@rachgupt-amd rachgupt-amd force-pushed the add-redundant-op-reduction-pass branch from ca627eb to 373ae44 Compare May 26, 2026 08:44
…QDQ models

Introduces a single -redundant-op-reduction func pass that runs the QDQ-relevant sub-passes (merge-continuous-strided-slice, remove-continuous-transpose-with-reshape, remove-semantically-useless-ops, remove-useless-qlinear-pool, convert-qdq-to-requantize, convert-scast-pair-to-requantize, onnx-transpose-optimization, combine-transpose-pair, canonicalize-with-result-names) in one go, so callers can invoke it from multiple stages of the pipeline.
@jorickert jorickert removed request for jorickert and p-lanza May 27, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant