]> granicus.if.org Git - llvm/commit
[AArch64] Fix bugs in isel lowering replaceSplatVectorStore.
authorGeoff Berry <gberry@codeaurora.org>
Fri, 11 Nov 2016 19:25:20 +0000 (19:25 +0000)
committerGeoff Berry <gberry@codeaurora.org>
Fri, 11 Nov 2016 19:25:20 +0000 (19:25 +0000)
commitbeb51d459e28dbe0913bf40e390ec442ed0ff0c6
treeb143fe2fb4b56e43cc15d2f8222200cfa7f6d682
parentd758cd3129b394ea5f342ea1075d8b9a3e2fec37
[AArch64] Fix bugs in isel lowering replaceSplatVectorStore.

Summary:
Fix off-by-one indexing error in loop checking that inserted value was a
splat vector.

Add code to check that INSERT_VECTOR_ELT nodes constructing the splat
vector have the expected constant index values.

Reviewers: t.p.northover, jmolloy, mcrosier

Subscribers: aemerson, llvm-commits, rengolin

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286616 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
test/CodeGen/AArch64/arm64-stp.ll