jh7370 wrote: Before I get to reviewing, this sounds strongly related to #200975 by @laxmansole, which has already had a fair bit of reviewing. Is this the same issue or just something related? https://github.com/llvm/llvm-project/pull/213391