[all-commits] [llvm/llvm-project] 029f1a: [LazyCallGraph] Skip blockaddresses

aeubanks via All-commits all-commits at lists.llvm.org
Mon Nov 1 13:10:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 029f1a53448979365ab965572356b83edc82f755
      https://github.com/llvm/llvm-project/commit/029f1a53448979365ab965572356b83edc82f755
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-11-01 (Mon, 01 Nov 2021)

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

  Log Message:
  -----------
  [LazyCallGraph] Skip blockaddresses

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.

Fixes PR50881.

Reviewed By: nickdesaulniers

Differential Revision: https://reviews.llvm.org/D112178




More information about the All-commits mailing list