[AArch64] fold subs ugt/ult to ands when the second operand is a mask
authorchenglin.bi <chenglin.bi@linaro.org>
Tue, 17 Jan 2023 04:01:41 +0000 (12:01 +0800)
committerchenglin.bi <chenglin.bi@linaro.org>
Tue, 17 Jan 2023 04:01:53 +0000 (12:01 +0800)
commit4a64024c1410692197e4b54e27e7b269a67c78f4
treefd41c539a3cf20791ede5cad6eb286bb8025da93
parentcc526e346debbaf1d2d32a59230288a4e98294c7
[AArch64] fold subs ugt/ult to ands when the second operand is a mask

https://alive2.llvm.org/ce/z/pLhHI9

Fix: https://github.com/llvm/llvm-project/issues/59598

Reviewed By: samtebbs

Differential Revision: https://reviews.llvm.org/D141829
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/andcompare.ll