nikic added a comment. As long as the load is speculatable, it should count as an ephemeral value and be considered as free by the inliner at least. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D112016/new/ https://reviews.llvm.org/D112016