qir-alliance / qat

QIR compiler tools and optimization passes for targeting QIR to different hardware backends
https://qir-alliance.github.io/qat/
MIT License
26 stars 14 forks source link

Add Global Dead Code Elimination #108

Closed swernli closed 2 years ago

swernli commented 2 years ago

This expands the dead code elimination to include GlobalDCE which runs at a module level instead of function level, allowing it to remove unreferenced declarations and global variables.