[InstCombine] Fold strtoul and strtoull and avoid PR #56293
authorMartin Sebor <msebor@redhat.com>
Thu, 7 Jul 2022 20:35:23 +0000 (14:35 -0600)
committerMartin Sebor <msebor@redhat.com>
Tue, 26 Jul 2022 20:11:40 +0000 (14:11 -0600)
commit4447603616bb43af58af89a8a6f880853f546a39
treef6bddaeff99ad482a5e68b1aed6b792f61191887
parent5ee910fef52448c141d0cd2507cee29432541cda
[InstCombine] Fold strtoul and strtoull and avoid PR #56293

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D129224
llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/str-int-2.ll
llvm/test/Transforms/InstCombine/str-int-4.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/str-int-5.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/str-int.ll
llvm/test/Transforms/InstCombine/strcall-no-nul.ll