[PATCH] D51054: [LoopVectorize][NFCI] Use find instead of count
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 22 09:05:49 PDT 2018
fhahn accepted this revision.
fhahn added reviewers: dcaballe, mkuper, rengolin.
fhahn added a comment.
This revision is now accepted and ready to land.
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.
================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:1276
+ auto InstSet = ScalarsPerVF->second;
+ return InstSet.find(I) != InstSet.end();
}
----------------
nit: Could be one line?
Repository:
rL LLVM
https://reviews.llvm.org/D51054
More information about the llvm-commits
mailing list