This is an archive of the discontinued LLVM Phabricator instance.

[LoopVectorize][NFCI] Use find instead of count
ClosedPublic

Authored by xbolva00 on Aug 21 2018, 11:41 AM.

Details

Summary

Avoid "count" if possible -> use "find" to check for the existence of keys.

Passed llvm test suite.

Diff Detail

Repository
rL LLVM

Event Timeline

xbolva00 created this revision.Aug 21 2018, 11:41 AM
fhahn accepted this revision.Aug 22 2018, 9:05 AM
fhahn added reviewers: dcaballe, mkuper, rengolin.

LGTM thanks. Can you run clang-format on the diff before committing? Also adding a few more people as reviewers, please wait with committing a day or so in case there is any more feedback.

lib/Transforms/Vectorize/LoopVectorize.cpp
1276 ↗(On Diff #161782)

nit: Could be one line?

This revision is now accepted and ready to land.Aug 22 2018, 9:05 AM
xbolva00 updated this revision to Diff 161984.Aug 22 2018, 10:09 AM
  • Formatted using clang-format
xbolva00 marked an inline comment as done.Aug 22 2018, 10:09 AM
This revision was automatically updated to reflect the committed changes.