[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
See https://mlir.llvm.org/ for more information.