This is an archive of the discontinued LLVM Phabricator instance.

[IR] Simplify Use::swap. NFCI.
ClosedPublic

Authored by foad on May 18 2020, 3:25 AM.

Details

Summary

The new implementation makes it clear that there are exactly two
conditional stores (after the initial no-op optimization). By contrast
the old implementation had seven conditionals, some hidden inside other
functions.

This commit can change the order of operands in operand lists, hence the
tweak to one test case.

Diff Detail

Event Timeline

foad created this revision.May 18 2020, 3:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2020, 3:25 AM
foad added a reviewer: ekatz.Jul 16 2020, 7:50 AM
ekatz accepted this revision.Jul 20 2020, 7:27 AM

I like it! Great job!

This revision is now accepted and ready to land.Jul 20 2020, 7:27 AM
ekatz added a comment.Jul 20 2020, 7:29 AM

I just wonder if there is anyone counting on the current ordering of uses.
Although, I think they shouldn't...

This revision was automatically updated to reflect the committed changes.