https://github.com/TinaAMD commented: Looks good, just one question around the scope here: Is it just refactoring + not failing at runtime on dense resources, or should this also enable folding dense resources? https://github.com/llvm/llvm-project/pull/85670