This is an archive of the discontinued LLVM Phabricator instance.

[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
of functions.

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

Diff Detail

Event Timeline

uabelho created this revision.Jun 27 2023, 3:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2023, 3:55 AM
uabelho requested review of this revision.Jun 27 2023, 3:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2023, 3:55 AM
aeubanks added inline comments.Jun 27 2023, 9:11 AM
llvm/test/Transforms/StripDeadPrototypes/remove-global-variable-declaration.ll
10

all you need is this global declaration in the test, nothing else below is necessary

uabelho updated this revision to Diff 535236.Jun 27 2023, 10:26 PM

Simplified testcase

uabelho marked an inline comment as done.Jun 27 2023, 10:27 PM
uabelho added inline comments.
llvm/test/Transforms/StripDeadPrototypes/remove-global-variable-declaration.ll
10

Thanks!

This revision is now accepted and ready to land.Jun 28 2023, 8:22 AM
This revision was automatically updated to reflect the committed changes.
uabelho marked an inline comment as done.