[PATCH] D45186: [InstCombine] Don't optimize call target casts inside thunks

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 2 14:37:47 PDT 2018


efriedma added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:4011
+  if (CI && CI->isMustTailCall() &&
+      CI->getParent()->getParent()->hasFnAttribute("thunk"))
+    return false;
----------------
Why does it matter whether the function is a thunk?  It seems like this would be a problem for any musttail call.


https://reviews.llvm.org/D45186





More information about the llvm-commits mailing list