Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request][compiler-v2] Dead store elimination optimization algorithm should be enhanced to eliminate cycles #12400

Open
vineethk opened this issue Mar 6, 2024 · 0 comments
Labels
compiler-v2 enhancement New feature or request stale-exempt Prevents issues from being automatically marked and closed as stale

Comments

@vineethk
Copy link
Contributor

vineethk commented Mar 6, 2024

🚀 Feature Request

When there are cycles in the dead store elimination graph, (like between a = b and b = a in the loop below), we should be able to eliminate it.

module 0xc0ffee::m {
    public fun test(x: u64, a: u64, b: u64) {
        let i = 0;
        while (i < x) {
            a = b;
            b = a;
            i = i + 1;
        }
    }
}

This test case is tracked as variable-coalescing/cyclic_dead_store.move.

@vineethk vineethk added enhancement New feature or request compiler-v2 labels Mar 6, 2024
@wrwg wrwg moved this from 🆕 New to For Grabs in Move Language and Runtime Mar 7, 2024
@sausagee sausagee added the stale-exempt Prevents issues from being automatically marked and closed as stale label Mar 8, 2024
@sausagee sausagee moved this from For Grabs to 📋 Backlog in Move Language and Runtime May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler-v2 enhancement New feature or request stale-exempt Prevents issues from being automatically marked and closed as stale
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants