This is an archive of the discontinued LLVM Phabricator instance.

Cleanup after r241809 - remove uncessary call to std::sort
ClosedPublic

Authored by sbaranga on Jul 13 2015, 7:31 AM.

Details

Summary

The iteration order within a member of DepCands is deterministic
and therefore we don't have to sort the accesses within a member.
We also don't have to copy the indices of the pointers into a
vector, since we can iterate over the members of the class.

Diff Detail

Repository
rL LLVM

Event Timeline

sbaranga updated this revision to Diff 29567.Jul 13 2015, 7:31 AM
sbaranga retitled this revision from to Cleanup after r241809 - remove uncessary call to std::sort.
sbaranga updated this object.
sbaranga added a subscriber: llvm-commits.
sbaranga updated this object.Jul 13 2015, 7:34 AM
This revision was automatically updated to reflect the committed changes.