[all-commits] [llvm/llvm-project] e50a8c: [GlobalMerge] Ensure that the MustKeepGlobalVariab...

stefanp-ibm via All-commits all-commits at lists.llvm.org
Wed Jun 29 13:56:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e50a8c8435e0c80e3b9881f58e335305d1c1e366
      https://github.com/llvm/llvm-project/commit/e50a8c8435e0c80e3b9881f58e335305d1c1e366
  Author: Stefan Pintilie <stefanp at ca.ibm.com>
  Date:   2022-06-29 (Wed, 29 Jun 2022)

  Changed paths:
    M llvm/lib/CodeGen/GlobalMerge.cpp
    A llvm/test/Transforms/GlobalMerge/eh-filter.ll

  Log Message:
  -----------
  [GlobalMerge] Ensure that the MustKeepGlobalVariables has all globals from each landingpad clause.

The filter clause in the landingpad may not have a GlobalVariable operand.
It may instead have a ConstantArray of operands and each operand within this
ConstantArray should also be checked to see if it is a GlobalVariable.

This patch add the check for the ConstantArray as well as a debug message that
outputs the contents of MustKeepGlobalVariables.

Reviewed By: lei, amyk, scui

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




More information about the All-commits mailing list