efriedma added a comment. You also need to update llvm::isInlineViable. ================ Comment at: llvm/lib/Analysis/InlineCost.cpp:1229 + if (II) { + return false; switch (II->getIntrinsicID()) { ---------------- Leftover code from testing? Repository: rL LLVM https://reviews.llvm.org/D45116