OSDN Git Service

[MemLoc] Support memcmp in MemoryLocation::getForArgument.
authorFlorian Hahn <flo@fhahn.com>
Fri, 28 Aug 2020 09:07:56 +0000 (10:07 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 28 Aug 2020 09:19:54 +0000 (10:19 +0100)
commitfd6ebea50db5257381d44258c1ff76a9b5da0f0b
tree22f65d08218eefbbf782b9cea59d82bb361ae751
parent85dacca29f8280fe72ee00adf3678ba06a9e2348
[MemLoc] Support memcmp in MemoryLocation::getForArgument.

This patch adds support for memcmp in MemoryLocation::getForArgument.
memcmp reads from the first 2 arguments up to the number of bytes of the
third argument.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D86725
llvm/lib/Analysis/MemoryLocation.cpp
llvm/test/Analysis/BasicAA/libfuncs.ll
llvm/test/Transforms/DeadStoreElimination/MSSA/libcalls.ll