diff options
| author | Craig Topper <craig.topper@gmail.com> | 2017-05-07 16:28:17 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2017-05-07 16:28:17 +0000 |
| commit | 252682a41bcb7d3c100aaf2f2fb21c7895714773 (patch) | |
| tree | adaa9d059460d7784b3e05fb574fb1cbff7eea89 /llvm/lib/Analysis/LoopInfo.cpp | |
| parent | 599e65b1ff51d4f92ebf68696adb0955788db051 (diff) | |
| download | bcm5719-llvm-252682a41bcb7d3c100aaf2f2fb21c7895714773.tar.gz bcm5719-llvm-252682a41bcb7d3c100aaf2f2fb21c7895714773.zip | |
[SCEV] Use move semantics in ScalarEvolution::setRange
Summary: This makes setRange take ConstantRange by rvalue reference since most callers were passing an unnamed temporary ConstantRange. We can then move that ConstantRange into the DenseMap caches. For the callers that weren't passing a temporary, I've added std::move to to the local variable being passed.
Reviewers: sanjoy, mzolotukhin, efriedma
Reviewed By: sanjoy
Subscribers: takuto.ikuta, llvm-commits
Differential Revision: https://reviews.llvm.org/D32943
llvm-svn: 302371
Diffstat (limited to 'llvm/lib/Analysis/LoopInfo.cpp')
0 files changed, 0 insertions, 0 deletions

