https://bugs.llvm.org/show_bug.cgi?id=43846
Bug ID: 43846
Summary: optimization missed NRVO
Product: clang
Version: 9.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++14
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
mixing templated member function with auto return type misses NRVO
optimization,
while the same code without auto return type does not,
or the same code without the template also optimizes.
code on godbolt:
https://godbolt.org/z/Vzef_3
does the right thing in 3.4.1
and breaks from 3.5 up to 9.0 and trunk
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs