[InstCombine] Adjust snprintf folding of constant strings (PR #56598)
authorMartin Sebor <msebor@redhat.com>
Wed, 27 Jul 2022 21:59:50 +0000 (15:59 -0600)
committerMartin Sebor <msebor@redhat.com>
Mon, 15 Aug 2022 21:59:21 +0000 (15:59 -0600)
commit65967708d22be2bc87a5789b54d200c94551351d
tree16926bf51077c8ea9f2d0efe297110b67f7d67ca
parent6f4f9e316c9c8c873eb930e24d2e66b204d3e3da
[InstCombine] Adjust snprintf folding of constant strings (PR #56598)

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D130494
llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/snprintf-2.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/snprintf-3.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/snprintf-4.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/snprintf.ll