diff options
| author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-11-05 03:04:40 +0000 |
|---|---|---|
| committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-11-05 03:04:40 +0000 |
| commit | 98bfe26bf8cbb088d13a3aee2d5c29070ffbbd55 (patch) | |
| tree | fdbb856ab913328f9d164cce0ae449ee8485dbb1 /llvm/tools/llvm-readobj/llvm-readobj.cpp | |
| parent | a40450cba2d40c33a58f2da075e807e1953c2c6a (diff) | |
| download | llvm-98bfe26bf8cbb088d13a3aee2d5c29070ffbbd55.zip llvm-98bfe26bf8cbb088d13a3aee2d5c29070ffbbd55.tar.gz llvm-98bfe26bf8cbb088d13a3aee2d5c29070ffbbd55.tar.bz2 | |
[FunctionAttrs] Remove a loop, NFC refactor
Summary:
Remove the loop over the uses of the CallSite in ArgumentUsesTracker.
Since we have the `Use *` for actual argument operand, we can just use
pointer subtraction.
The time complexity remains the same though (except for a vararg
argument) -- `std::advance` is O(UseIndex) for the ArgumentList
iterator.
The real motivation is to make a later change adding support for operand
bundles simpler.
Reviewers: reames, chandlerc, nlewycky
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D14363
llvm-svn: 252141
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions
