[AArch64][SVE] Fix crash for DestructiveBinaryComm zero merging
authorzhongyunde <zhongyunde@huawei.com>
Tue, 17 Jan 2023 12:43:05 +0000 (20:43 +0800)
committerzhongyunde <zhongyunde@huawei.com>
Tue, 17 Jan 2023 12:45:59 +0000 (20:45 +0800)
commit2deb10c1084240f27bdd235fa26a7b001186847f
tree9459a2bf50f2efaae34b8d03b27433b8bb2e75ff
parentda78ae46f480b74d798ecb502d92436bb3b802de
[AArch64][SVE] Fix crash for DestructiveBinaryComm zero merging

This fix is similar to D124325, and I find the DestructiveBinaryComm
operation type also may be allocated same register, so insert the LSL.

      movprfx       z0.s, p0/z, z0.s
      lsl z0.b, p0/m, z0.b, #0
      fmul z0.s, p0/m, z0.s, z0.s

Reviewed By: paulwalker-arm

Differential Revision: https://reviews.llvm.org/D141471
llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
llvm/test/CodeGen/AArch64/sve-intrinsics-int-binaryComm-merging.mir [new file with mode: 0644]