[libcxx-commits] [PATCH] D67273: [libc++] Remove unnecessary assignment in exclusive_scan

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Sep 6 13:44:29 PDT 2019


zoecarver added inline comments.


================
Comment at: libcxx/include/numeric:317
+            __init = _VSTD::move(__tmp);
         } while (++__first != __last);
     }
----------------
The compiler can optimize a for loop much better than a do-while loop.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67273/new/

https://reviews.llvm.org/D67273





More information about the libcxx-commits mailing list