[PATCH] D112178: [LazyCallGraph] Skip blockaddresses

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 20 13:26:05 PDT 2021


aeubanks created this revision.
Herald added subscribers: okura, kuter, hiraditya.
aeubanks requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: sstefan1.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

blockaddresses do not participate in the call graph since the only
instructions that use them must all return to someplace within the
current function. And passes cannot retrieve a function address from a
blockaddress.

This was suggested by efriedma in D58260 <https://reviews.llvm.org/D58260>.

Fixes PR50881.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112178

Files:
  llvm/lib/Analysis/LazyCallGraph.cpp
  llvm/test/Analysis/LazyCallGraph/blockaddress.ll
  llvm/test/Transforms/Attributor/IPConstantProp/dangling-block-address.ll
  llvm/test/Transforms/Attributor/liveness.ll
  llvm/unittests/Analysis/LazyCallGraphTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112178.381084.patch
Type: text/x-patch
Size: 9780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211020/b3599ca3/attachment.bin>


More information about the llvm-commits mailing list