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.
Paths
| Differential D153855
[StructuralHash] Ignore global variable declarations ClosedPublic Authored by uabelho on Jun 27 2023, 3:55 AM.
Details Summary Ignore declarations of global variables, just as we do with declarations Done as a follow up to the comments in https://reviews.llvm.org/D149209.
Diff Detail Event Timeline
This revision is now accepted and ready to land.Jun 28 2023, 8:22 AM Closed by commit rGd2640f596c47: [StructuralHash] Ignore global variable declarations (authored by uabelho). · Explain WhyJun 28 2023, 10:53 PM This revision was automatically updated to reflect the committed changes. uabelho marked an inline comment as done.
Revision Contents
Diff 534902 llvm/lib/IR/StructuralHash.cpp
llvm/test/Transforms/StripDeadPrototypes/remove-global-variable-declaration.ll
|
all you need is this global declaration in the test, nothing else below is necessary