diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-05-06 06:03:07 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-05-06 06:03:07 +0000 |
commit | 6c5e22a4b876fa6a40929f06d8c3b3967324ce76 (patch) | |
tree | 3686bab7f2086c2c25ec4828a2dfe4131c3e6ccf /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 69f1af29fba253eb908d81fdcb0471487b8813f2 (diff) | |
download | bcm5719-llvm-6c5e22a4b876fa6a40929f06d8c3b3967324ce76.tar.gz bcm5719-llvm-6c5e22a4b876fa6a40929f06d8c3b3967324ce76.zip |
[SCEV] Remove extra APInt copies from getRangeForAffineARHelper.
This changes one parameter to be a const APInt& since we only read from it. Use std::move on local APInts once they are no longer needed so we can reuse their allocations. Lastly, use operator+=(uint64_t) instead of adding 1 to an APInt twice creating a new APInt each time.
llvm-svn: 302335
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
0 files changed, 0 insertions, 0 deletions