[PATCH] D110901: [SimplifyCFG] Prevent SimplifyCFG from sinking indirect calls.

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 1 12:37:56 PDT 2021


jdoerfert added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:2065-2066
+      if (auto *CB = dyn_cast<CallBase>(I))
+        if (AbstractCallSite ACS = &CB->getCalledOperandUse())
+          if (ACS.isIndirectCall())
+            return false;
----------------
CB has an isindirectcall member, IIRC.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110901



More information about the llvm-commits mailing list