[PATCH] D46976: [STLExtras] Add size() for ranges, and remove distance()
Vedant Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 16 14:18:34 PDT 2018
vsk created this revision.
vsk added reviewers: dblaikie, craig.topper, bjope.
r332057 introduced distance() for ranges. Based on post-commit feedback,
this renames distance() to size(). The new size() is also only enabled
when the operation is O(1).
https://reviews.llvm.org/D46976
Files:
include/llvm/ADT/STLExtras.h
lib/Analysis/LazyCallGraph.cpp
lib/CodeGen/ImplicitNullChecks.cpp
lib/IR/Value.cpp
lib/Transforms/Scalar/GVNHoist.cpp
lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
unittests/ADT/IteratorTest.cpp
unittests/IR/BasicBlockTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46976.147177.patch
Type: text/x-patch
Size: 5910 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180516/830c701d/attachment.bin>
More information about the llvm-commits
mailing list