Skip to content

Conversation

@tqchen
Copy link
Member

@tqchen tqchen commented Jun 18, 2025

This PR phases out LegacyReprPrinter. Previously common subexpr elim relies on sorting on legacy repr for determism, which is hacky.

This PR introduces an ordered_map impl in support to ensure determinism and migrates the CSE pass to use that instead.

@tqchen tqchen force-pushed the legacy-printer branch 4 times, most recently from 003163b to 16723ba Compare June 18, 2025 20:58
This PR phases out LegacyReprPrinter. Previously common subexpr elim
relies on sorting on legacy repr for determism, which is hacky.

This PR introduces an ordered_map impl in support to ensure determinism
and migrates the CSE pass to use that instead.
@MasterJH5574 MasterJH5574 merged commit 5a5ccd8 into apache:main Jun 19, 2025
13 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
…pache#18080)

This PR phases out LegacyReprPrinter. Previously common subexpr elim
relies on sorting on legacy repr for determism, which is hacky.

This PR introduces an ordered_map impl in support to ensure determinism
and migrates the CSE pass to use that instead.
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.

2 participants