https://github.com/sarnex approved this pull request. lgtm, but i asked greg from my team to also take a look at this since he's more familiar with what the correct logic should be https://github.com/llvm/llvm-project/pull/174910