[all-commits] [llvm/llvm-project] 7ba045: Make basic_string::operator=() tail call properly
Martijn Vels via All-commits
all-commits at lists.llvm.org
Fri Apr 10 16:42:35 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7ba045a430b9e3812c20a941f45addac0fd6afd7
https://github.com/llvm/llvm-project/commit/7ba045a430b9e3812c20a941f45addac0fd6afd7
Author: Martijn Vels <mvels at google.com>
Date: 2020-04-10 (Fri, 10 Apr 2020)
Changed paths:
M libcxx/include/__string
M libcxx/include/string
Log Message:
-----------
Make basic_string::operator=() tail call properly
Summary: We discovered that the compiler may chose not to inline the operator=, which leads to an expensive extra stack frame. This change makes __assign_no_alias always tail called.
Reviewers: EricWF, #libc!
Subscribers: libcxx-commits
Tags: #libc
Differential Revision: https://reviews.llvm.org/D77913
More information about the All-commits
mailing list