[PATCH] D96179: Ignore assume like calls by default in hasAddressTaken()

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 15 14:35:36 PDT 2021


rampitec updated this revision to Diff 337905.
rampitec added a comment.

Ping. It is there for quite a while already, nothing seems to be broken even though it is set to true in call graph builder.


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

https://reviews.llvm.org/D96179

Files:
  llvm/include/llvm/IR/Function.h


Index: llvm/include/llvm/IR/Function.h
===================================================================
--- llvm/include/llvm/IR/Function.h
+++ llvm/include/llvm/IR/Function.h
@@ -895,7 +895,7 @@
   ///
   bool hasAddressTaken(const User ** = nullptr,
                        bool IgnoreCallbackUses = false,
-                       bool IgnoreAssumeLikeCalls = false,
+                       bool IgnoreAssumeLikeCalls = true,
                        bool IngoreLLVMUsed = false) const;
 
   /// isDefTriviallyDead - Return true if it is trivially safe to remove


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96179.337905.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210415/472f02ac/attachment.bin>


More information about the llvm-commits mailing list