[llvm] flang-rt: improve endian conversion performance (PR #218302)

Slava Zakharin via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 25 08:02:47 PDT 2026


================
@@ -31,6 +31,61 @@ RT_OFFLOAD_API_GROUP_BEGIN
 
 static inline RT_API_ATTRS void SwapEndianness(
     char *data, std::size_t bytes, std::size_t elementBytes) {
+  switch (elementBytes) {
----------------
vzakhari wrote:

Sorry, I do not see it.

https://github.com/llvm/llvm-project/pull/218302


More information about the llvm-commits mailing list