tschuett added a comment. Does this test -O2 or --lto-O2? Do you need two files for checking lto, i.e. it inlines foo across two TUs? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105223/new/ https://reviews.llvm.org/D105223