summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-06-25 17:33:49 +0000
committerCraig Topper <craig.topper@gmail.com>2017-06-25 17:33:49 +0000
commit18e6b57cdf6e5373d09b3ee198834f4e655f1b1c (patch)
tree4c11d28cdfba9bbf186976fd3849e5fad1ee13e3 /llvm/lib/Transforms/Utils/LoopSimplify.cpp
parentd1fbb38475cf5318e78b47d27f13147e4ce3ae17 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud