[all-commits] [llvm/llvm-project] 86dbca: [llvm] Teach GlobalDCE about dso_local_equivalent

PiJoules via All-commits all-commits at lists.llvm.org
Thu Feb 23 15:14:22 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86dbcafd0cdc88ae85896c6f12ecaa6006aeba54
      https://github.com/llvm/llvm-project/commit/86dbcafd0cdc88ae85896c6f12ecaa6006aeba54
  Author: Leonard Chan <leonardchan at google.com>
  Date:   2023-02-23 (Thu, 23 Feb 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/TypeMetadataUtils.h
    M llvm/lib/Analysis/TypeMetadataUtils.cpp
    M llvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers-bad.ll
    M llvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers-gep.ll
    M llvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers.ll

  Log Message:
  -----------
  [llvm] Teach GlobalDCE about dso_local_equivalent

This way, C++ relative-vtables can also participate in GlobalDCE. This
depends on some TypeMetadataUtils.cpp bits in D134320, but that
dependency can be removed and included here if necessary.

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




More information about the All-commits mailing list