This is an archive of the discontinued LLVM Phabricator instance.

[TypePromotion] Use vectors instead of sets
ClosedPublic

Authored by samparker on Jan 7 2020, 3:41 AM.

Details

Summary

Remove the chance of non-deterministic insertion of zexts of the sources by using a SetVector, instead of SmallPtrSet. Do the same for sinks for consistency and to negate the issue from possibly happening. The SafeWrap instructions are now also stored in a SmallVector. The IRPromoter members of these structures have been changed to references.

Diff Detail

Event Timeline

samparker created this revision.Jan 7 2020, 3:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 7 2020, 3:41 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
hans accepted this revision.Jan 7 2020, 5:05 AM

Looks good to me. Thanks!

This revision is now accepted and ready to land.Jan 7 2020, 5:05 AM
This revision was automatically updated to reflect the committed changes.