mehdi_amini added a comment. Couldn't we "cache" the result of the check in the function `get_source_info`? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D82276/new/ https://reviews.llvm.org/D82276