https://github.com/teresajohnson approved this pull request. This seems like the wrong place to do this optimization anyway - is there no optimization pass that removes dead constant arrays, e.g. GlobalDCE? https://github.com/llvm/llvm-project/pull/137081