OSDN Git Service

[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)
commit32dae0daed5f86ce834f2c13249dc3eb561db54b
treed47d7057a0198610e0850f3eba75efe457b659cb
parentc271b02f2953e0d0dcfb96a801eef3c94ff4f88f
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334579 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCVSXSwapRemoval.cpp