[PPC64LE] Fix PR24546 - Swap optimization and debug values
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 24 Aug 2015 19:27:27 +0000 (19:27 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 24 Aug 2015 19:27:27 +0000 (19:27 +0000)
commit8c932ac614e8754df684694088cab34f7235f565
tree1743fcfe168f5d0223cec32421ff6b3abe783aba
parent3c334d631e72944b27d7263ab43c656a9b3e2ec7
[PPC64LE] Fix PR24546 - Swap optimization and debug values

This patch fixes PR24546, which demonstrates a segfault during the VSX
swap removal pass.  The problem is that debug value instructions were
not excluded from the list of instructions to be analyzed for webs of
related computation.  I've added the test case from the PR as a crash
test in test/CodeGen/PowerPC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245862 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
test/CodeGen/PowerPC/pr24546.ll [new file with mode: 0644]