https://github.com/fhahn approved this pull request. LGTM, thanks. But should probably fold the `mayHaveSideEffects ` change from https://github.com/llvm/llvm-project/pull/113410 into this PR https://github.com/llvm/llvm-project/pull/110974