[mlir] remove dead values: don't remove used symbols (#238760)

This was hitherto accidental for functions and region-carrying globals,
make it intentional. In a custom dialect, one may have a side effect
free global-like operation with a symbol referenced from elsewhere in
the translation unit. We don't want that to be removed.

Assisted-by: Gemini 4 Argon
GitOrigin-RevId: 305a2819de8cbbb32f9da466d286f44b065e24a6
2 files changed
tree: 346d416ad0a4c92919b580433a6658b4f753e1c7
  1. benchmark/
  2. cmake/
  3. docs/
  4. examples/
  5. include/
  6. lib/
  7. python/
  8. test/
  9. tools/
  10. unittests/
  11. utils/
  12. .clang-format
  13. .clang-tidy
  14. CMakeLists.txt
  15. LICENSE.TXT
  16. Maintainers.md
  17. README.md
README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.