[DAGCombine][AArch64] Allow transformable to legal vectors to be used for MULH lowering.
authorDinar Temirbulatov <dinar.temirbulatov@arm.com>
Wed, 19 Apr 2023 13:24:58 +0000 (13:24 +0000)
committerDinar Temirbulatov <dinar.temirbulatov@arm.com>
Wed, 19 Apr 2023 13:24:58 +0000 (13:24 +0000)
commite6096871fdd49461687ff57c4882c76477d1d5cd
tree1ee35fe48bcc0adbe1b04d313327a14d7fda3b76
parent89d27854ec7f5e8bd83e72fa574740bf3d06355b
[DAGCombine][AArch64] Allow transformable to legal vectors to be used for MULH lowering.

It looks like it is still profitable to accept a transformable to a legal vector
type, not just a legal vector, as long as vector elements are the same between
two of those types.

Differential Revision: https://reviews.llvm.org/D148229
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-fixed-length-int-mulh.ll
llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-int-mulh.ll