[all-commits] [llvm/llvm-project] c3d78a: [libc][benchmarks] Tidy uses of raw_string_ostream...
Youngsuk Kim via All-commits
all-commits at lists.llvm.org
Tue Sep 17 08:27:39 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c3d78a7af8e74c588501a2555b4a4ed7bdc55ef5
https://github.com/llvm/llvm-project/commit/c3d78a7af8e74c588501a2555b4a4ed7bdc55ef5
Author: Youngsuk Kim <youngsuk.kim at hpe.com>
Date: 2024-09-17 (Tue, 17 Sep 2024)
Changed paths:
M libc/benchmarks/MemorySizeDistributions.cpp
M libc/benchmarks/automemcpy/unittests/CodeGenTest.cpp
Log Message:
-----------
[libc][benchmarks] Tidy uses of raw_string_ostream (NFC)
As specified in the docs,
1) raw_string_ostream is always unbuffered and
2) the underlying buffer may be used directly
( 65b13610a5226b84889b923bae884ba395ad084d for further reference )
Avoid unneeded calls to raw_string_ostream::str(), to avoid excess indirection.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list