https://github.com/petrhosek approved this pull request. I attempted to implement this in https://reviews.llvm.org/D158450 (that change also has some additional context) and I'm glad someone picked this up. https://github.com/llvm/llvm-project/pull/150182