[SelectionDAG] Handle bzero/memset libcalls globally instead of per target
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 8 Jun 2022 09:39:49 +0000 (09:39 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Thu, 9 Jun 2022 08:34:55 +0000 (08:34 +0000)
commitdc3367970e9bdd9ce2a47efd080ed493ed4e8f4b
treee65a560e502a80faf30c922c4a3b8a07b53f62cc
parent553d5161ee23694953ff7493f50d077e85e26fce
[SelectionDAG] Handle bzero/memset libcalls globally instead of per target

Differential Revision: https://reviews.llvm.org/D127279
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.cpp
llvm/lib/Target/X86/X86SelectionDAGInfo.cpp
llvm/test/CodeGen/AArch64/arm64-memset-to-bzero.ll
llvm/test/CodeGen/AArch64/arm64_32.ll