[libc-commits] [PATCH] D131725: [libc] move int conversion out of base template

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Aug 11 15:00:45 PDT 2022


sivachandra accepted this revision.
sivachandra added inline comments.


================
Comment at: libc/src/__support/integer_to_string.h:115
-    // If This function can actually be a constexpr, then the below "if" will be
-    // optimized out.
     if (buffer.size() < bufsize())
----------------
Will be interesting to see if this `if` is being optimized out because `buffer` is a constexpr in your use case.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131725



More information about the libc-commits mailing list