[all-commits] [llvm/llvm-project] 4e6529: [OpaquePtr][GlobalOpt] Don't attempt to evaluate g...

aeubanks via All-commits all-commits at lists.llvm.org
Wed Apr 27 19:02:34 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e65291837aa33d1849a1ebe560ac816aabade39
      https://github.com/llvm/llvm-project/commit/4e65291837aa33d1849a1ebe560ac816aabade39
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-04-27 (Wed, 27 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/CtorUtils.cpp
    M llvm/lib/Transforms/Utils/Evaluator.cpp
    A llvm/test/Transforms/GlobalOpt/global-constructor-opaque-ptr.ll

  Log Message:
  -----------
  [OpaquePtr][GlobalOpt] Don't attempt to evaluate global constructors with arguments

Previously all entries in global_ctors had to have the void()* type and
we'd skip evaluating bitcasted functions. With opaque pointers we may
see the function directly.

Fixes #55147.

Reviewed By: #opaque-pointers, nikic

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




More information about the All-commits mailing list