Recommit [AArch64] Optimize memcmp when the result is tested for [in]equality with 0
authorzhongyunde <zhongyunde@huawei.com>
Sat, 29 Oct 2022 18:03:44 +0000 (02:03 +0800)
committerzhongyunde <zhongyunde@huawei.com>
Sat, 29 Oct 2022 18:04:02 +0000 (02:04 +0800)
commit63a46385f2c6dd39cf68d9811548c53e8d460cd9
tree2cb1e0f46a288a4fa3216df670c9a0669b3ee52b
parentc4a8f9abac2b2a6925ab99384f10ae3f5c2fd85f
Recommit [AArch64] Optimize memcmp when the result is tested for [in]equality with 0

Fixes 1st issue of https://github.com/llvm/llvm-project/issues/58061
Fixes the crash of https://github.com/llvm/llvm-project/issues/58675

Reviewed By: dmgreen, efriedma
Differential Revision: https://reviews.llvm.org/D136244
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/atomicrmw-O0.ll
llvm/test/CodeGen/AArch64/bcmp-inline-small.ll
llvm/test/CodeGen/AArch64/bcmp.ll
llvm/test/CodeGen/AArch64/dag-combine-setcc.ll
llvm/test/CodeGen/AArch64/i128-cmp.ll
llvm/test/CodeGen/AArch64/umulo-128-legalisation-lowering.ll