This is an archive of the discontinued LLVM Phabricator instance.

[SROA] Fix bug where RankVectorTypes is used in std::unique
ClosedPublic

Authored by zhuhan0 on Feb 16 2023, 3:20 PM.

Details

Summary

RankVectorTypes is a not an equivalence relation so when it is used in std::unique, the behavior is undefined. Create RankVectorTypesEq and use that instead.

Diff Detail

Event Timeline

zhuhan0 created this revision.Feb 16 2023, 3:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 16 2023, 3:20 PM
zhuhan0 requested review of this revision.Feb 16 2023, 3:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 16 2023, 3:20 PM
zhuhan0 edited the summary of this revision. (Show Details)Feb 16 2023, 3:23 PM
zhuhan0 updated this revision to Diff 498188.Feb 16 2023, 4:18 PM

Delete obsolete comment.

MatzeB accepted this revision.Mar 6 2023, 3:50 PM

LGTM

This revision is now accepted and ready to land.Mar 6 2023, 3:50 PM
zhuhan0 closed this revision.Mar 7 2023, 2:19 PM