[SimplifyLibCalls] avoid slicing 64-bit integers in an ILP32 build (PR #54739)
authorMartin Sebor <msebor@redhat.com>
Tue, 26 Apr 2022 22:26:09 +0000 (16:26 -0600)
committerMartin Sebor <msebor@redhat.com>
Tue, 26 Apr 2022 23:20:56 +0000 (17:20 -0600)
commitffed0cfcdbee1b692fa19f9d97302cdf4423e5ee
tree85c17cd215f649b847095421ba8964d421e24fa9
parenta0b8ab1ba3165d468792cf0032fce274c7d624e1
[SimplifyLibCalls] avoid slicing 64-bit integers in an ILP32 build (PR #54739)

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D123472
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/memchr-4.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/strncmp-3.ll [new file with mode: 0644]