[PATCH] D79188: [AbstractCallSite] Look though constant cast expression when checking for callee use

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 13:26:48 PDT 2020


jdoerfert accepted this revision.
jdoerfert added a comment.
This revision is now accepted and ready to land.

LGTM, THX!



================
Comment at: llvm/include/llvm/IR/AbstractCallSite.h:148
+      if (CE->getNumUses() == 1 && CE->isCast())
+        U = &*CE->use_begin();
+
----------------
I checked and it still matches. At some point I locally removed the single use restriction actually. Nothing for this patch but just for your information ;)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79188





More information about the llvm-commits mailing list