[PowerPC] avoid verification failure due to PowerPC VSX Swap Removal pass
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Wed, 13 Jun 2018 08:25:14 +0000 (08:25 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Wed, 13 Jun 2018 08:25:14 +0000 (08:25 +0000)
commit9bffc94cf0741a3308e7b8304f044c604fc3d749
tree0df2f0ff860b30c5a186b89502badc185da94501
parent4adc88ed25b313b1dc6594f3b00d1a206f5449b6
[PowerPC] avoid verification failure due to PowerPC VSX Swap Removal pass

This patch fixes a failure in lnt tests with -verify-machineinstrs option.
When VSX Swap Removal pass swaps two register operands, it did not maintain kill flags associated with operands. This patch swaps flags as well as register number to avoid inconsistent kill flags information.

llvm-svn: 334579
llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp