[all-commits] [llvm/llvm-project] da137d: [SimplifyLibCalls] Add NoUndef/NonNull/Dereference...
Karl-Johan Karlsson via All-commits
all-commits at lists.llvm.org
Tue Oct 18 07:37:12 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: da137d041b3766db755ab390528ea5d9eb60d0f0
https://github.com/llvm/llvm-project/commit/da137d041b3766db755ab390528ea5d9eb60d0f0
Author: uabkaka <karl-johan.karlsson at ericsson.com>
Date: 2022-10-18 (Tue, 18 Oct 2022)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
M llvm/test/Transforms/InstCombine/printf-1.ll
M llvm/test/Transforms/InstCombine/sprintf-1.ll
Log Message:
-----------
[SimplifyLibCalls] Add NoUndef/NonNull/Dereferenceable attributes to iprintf/siprintf
When SimplifyLibCalls fail to optimize printf and sprintf it add
NoUndef/NonNull/Dereferenceable attributes. This patch add the same attributes
if SimplifyLibCalls optimize printf/sprintf into the integer only
iprintf/siprintf.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D136140
More information about the All-commits
mailing list