This is an archive of the discontinued LLVM Phabricator instance.

[GVN] Add tests for PR63059 (NFC)
ClosedPublic

Authored by ManuelJBrito on Jun 29 2023, 8:55 AM.

Details

Summary

Besides the example from the issue, this adds some other related wrong transformations.

Diff Detail

Event Timeline

ManuelJBrito created this revision.Jun 29 2023, 8:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 8:55 AM
ManuelJBrito requested review of this revision.Jun 29 2023, 8:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 8:55 AM
nlopes accepted this revision.Jun 29 2023, 8:57 AM
This revision is now accepted and ready to land.Jun 29 2023, 8:57 AM
nikic added a subscriber: nikic.Jun 29 2023, 9:18 AM
nikic added inline comments.
llvm/test/Transforms/GVN/pr63059.ll
5

Remove attributes that are not relevant.

28

Do not use unnamed instructions in tests.

Uploaded the fixed tests by mistake.
Address @nikic 's comments.

This revision was automatically updated to reflect the committed changes.