[patch] review request for a bug fix D141909

Hi All,

When I am working on LLVM, I encounter a problem that when striping the debug info from an IR file generated by clang, some useful metadata got removed.

I fixed the problem. And since it is still reproduceable on the main branch, I uploaded the fix in phabricator following the instruction in the document: ⚙ D141909 Avoid removing useful loop metadata when striping debug info

I was wondering if someone could review it. Thanks in advance.

Note: the pre-merge check failed on a few tests timeout, but I don’t think they are related.

Regards,
Dongrui