[SVE][CodeGen] Expand SVE MULH[SU] and [SU]MUL_LOHI nodes
authorFraser Cormack <fraser@codeplay.com>
Wed, 17 Feb 2021 09:25:58 +0000 (09:25 +0000)
committerFraser Cormack <fraser@codeplay.com>
Thu, 18 Feb 2021 10:06:24 +0000 (10:06 +0000)
commit0176fecfbcd6b867fd31d7b85cc748220150babc
tree139a4f9f5ed73b28a2dee64a3175a1ee0c619db0
parentc1e23894fcf592fa5f74d9c2447f947c011f6216
[SVE][CodeGen] Expand SVE MULH[SU] and [SU]MUL_LOHI nodes

This patch fixes a codegen crash introduced in fde24661718c, where the
DAGCombiner started generating optimized MULH[SU] or [SU]MUL_LOHI nodes
unless the target opted out. The AArch64 backend cannot currently select
any of these nodes, so ensure that they are not generated in the first
place.

This issue was raised by @huihuiz in D94501.

Reviewed By: paulwalker-arm

Differential Revision: https://reviews.llvm.org/D96849
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-int-arith-imm.ll