]> granicus.if.org Git - llvm/commit
[AArch64] Fix bug in store of vector 0 DAGCombine.
authorGeoff Berry <gberry@codeaurora.org>
Thu, 21 Sep 2017 21:10:06 +0000 (21:10 +0000)
committerGeoff Berry <gberry@codeaurora.org>
Thu, 21 Sep 2017 21:10:06 +0000 (21:10 +0000)
commit7946cf61b738bcad220710feb6208912e6a105e6
treedbaf391d30d18a6e39429edc2d89f2dcb1942487
parent1481a4e7b6d4fd40143b263f4745d00eb4020627
[AArch64] Fix bug in store of vector 0 DAGCombine.

Summary:
Avoid using XZR/WZR directly as operands to split stores of zero
vectors.  Doing so can lead to the XZR/WZR being used by an instruction
that doesn't allow it (e.g. add).

Fixes bug 34674.

Reviewers: t.p.northover, efriedma, MatzeB

Subscribers: aemerson, rengolin, javed.absar, mcrosier, eraman, llvm-commits, kristof.beyls

Differential Revision: https://reviews.llvm.org/D38146

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313916 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
test/CodeGen/AArch64/arm64-memset-inline.ll
test/CodeGen/AArch64/fastcc.ll
test/CodeGen/AArch64/ldst-opt.ll