https://github.com/fhahn approved this pull request. LGTM, thanks. This is in line with how other places handle `DoExtraAnalysis` and it can be quite helpful to get info about all instructions in a loop that prevent vectorization https://github.com/llvm/llvm-project/pull/153833