[PATCH] D84620: [StackProtector] Speed up RequiresStackProtector

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 26 23:41:53 PDT 2020


craig.topper added inline comments.


================
Comment at: llvm/lib/CodeGen/StackProtector.cpp:257
       if (const CallInst *CI = dyn_cast<CallInst>(&I))
-        if (CI->getCalledFunction() ==
-            Intrinsic::getDeclaration(F.getParent(), Intrinsic::stackprotector))
+        if (CI->getCalledFunction() == StackProtectorDecl)
           return CI;
----------------
Can this just be CI->getIntrinsicID() == Intrinsic::stackprotector?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84620





More information about the llvm-commits mailing list