[libcxx-commits] [PATCH] D68623: Optimize and Fix move assignment operator

Marshall Clow via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 7 19:00:25 PDT 2019


mclow.lists added a comment.

I'm wondering where you are seeing getting this codegen from.

I tried this in Compiler Explorer:

  extern std::string source;
  extern std::string dest;
  
  int main () { source = std::move(dest);  return dest.size(); }

and got a much simpler codegen with `-O3`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D68623





More information about the libcxx-commits mailing list