[StructuralHash] Ignore global variable declarations
authorMikael Holmen <mikael.holmen@ericsson.com>
Thu, 29 Jun 2023 05:51:15 +0000 (07:51 +0200)
committerMikael Holmen <mikael.holmen@ericsson.com>
Thu, 29 Jun 2023 05:51:49 +0000 (07:51 +0200)
commitd2640f596c4763596ab92dadbdd0477afae4190f
tree2b22f2c073a0fdb53bbd5b52cd429d14679a3291
parent80155cbf0be1744953edf68b9729c24bd0de79c4
[StructuralHash] Ignore global variable declarations

Ignore declarations of global variables, just as we do with declarations
of functions.

Done as a follow up to the comments in https://reviews.llvm.org/D149209

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

# Conflicts:
# llvm/lib/IR/StructuralHash.cpp
llvm/lib/IR/StructuralHash.cpp
llvm/test/Transforms/StripDeadPrototypes/remove-global-variable-declaration.ll [new file with mode: 0644]