I'd like to backport PR https://github.com/llvm/llvm-project/pull/79562 to release/18.x branch.