[PATCH] D128287: [GlobalMerge] Ensure that the MustKeepGlobalVariables has all globals from each landingpad clause.

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 21 09:56:19 PDT 2022


stefanp created this revision.
stefanp added reviewers: lei, nemanjai.
Herald added a subscriber: hiraditya.
Herald added a project: All.
stefanp requested review of this revision.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128287

Files:
  llvm/lib/CodeGen/GlobalMerge.cpp
  llvm/test/Transforms/GlobalMerge/eh-filter.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128287.438744.patch
Type: text/x-patch
Size: 4277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220621/a0deb1a1/attachment.bin>


More information about the llvm-commits mailing list