diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-06-25 17:33:49 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-06-25 17:33:49 +0000 |
commit | 18e6b57cdf6e5373d09b3ee198834f4e655f1b1c (patch) | |
tree | 4c11d28cdfba9bbf186976fd3849e5fad1ee13e3 /llvm/lib/Transforms/Utils/LoopSimplify.cpp | |
parent | d1fbb38475cf5318e78b47d27f13147e4ce3ae17 (diff) | |
download | bcm5719-llvm-18e6b57cdf6e5373d09b3ee198834f4e655f1b1c.tar.gz bcm5719-llvm-18e6b57cdf6e5373d09b3ee198834f4e655f1b1c.zip |
[TableGen] Remove some copies around PatternToMatch.
Summary:
This patch does a few things that should remove some copies around PatternsToMatch. These were noticed while reviewing code for D34341.
Change constructor to take Dstregs by value and move it into the class. Change one of the callers to add std::move to the argument so that it gets moved.
Make AddPatternToMatch take PatternToMatch by rvalue reference so we can move it into the PatternsToMatch vector. I believe we should have a implicit default move constructor available on PatternToMatch. I chose rvalue reference because both callers call it with temporaries already.
Reviewers: RKSimon, aymanmus, spatel
Reviewed By: aymanmus
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D34411
llvm-svn: 306251
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
0 files changed, 0 insertions, 0 deletions