cxy-1993 wrote: This PR is a re-submission from (https://github.com/llvm/llvm-project/pull/85528), with changes to include additional tests. Please help me review this patch. @MaheshRavishankar @ftynse @Abhishek-Varma @nicolasvasilache https://github.com/llvm/llvm-project/pull/89893