[PATCH] D128999: [CGSCC] Don't count calls to intrinsic functions in finding potential deviritualizations.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 2 10:49:03 PDT 2022


nikic added a comment.

`memcpy` the libcall can be an indirect call target. `llvm.memcpy` the intrinsic cannot be. If an indirect `memcpy` becomes direct and is then replaced with the intrinsic, that's a divirtualization, but I don't think it's one relevant for the purposes of DevirtSCC, because such a call cannot be inlined. (Phrased like that, I think the relevant property here is not so much that something is an intrinsic, but that it is a declaration, as declarations are not eligible for inlining.)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128999/new/

https://reviews.llvm.org/D128999



More information about the llvm-commits mailing list