[PATCH] D130922: [InstCombine] Add support for stpncpy folding
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 13 15:34:21 PDT 2022
efriedma added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp:746
+
+ --SrcLen; // Unbias length or set it to UINT64_MAX if unknown.
----------------
It's confusing to reason about what happens here if SrcLen == UINT64_MAX. Is there a reason you got rid of the early return?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130922/new/
https://reviews.llvm.org/D130922
More information about the llvm-commits
mailing list