This is an archive of the discontinued LLVM Phabricator instance.

[Use] Preserve original uselist order in Use::swap().
AbandonedPublic

Authored by fhahn on Jul 17 2019, 2:29 PM.

Details

Summary

There is no need to remove and add the swapped values to their
respective use lists. We can just adjust thread the swapped values in
the uselist, preserving the original order.

Event Timeline

fhahn created this revision.Jul 17 2019, 2:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2019, 2:29 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
fhahn updated this revision to Diff 210423.Jul 17 2019, 2:33 PM

Remove unnecessary checks.

fhahn abandoned this revision.Jul 16 2020, 9:08 AM

It looks like there's an alternative that also preserves the order and is less complicated: D80116