[AMDGPU] Fixed v_swap_b32 match
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 16 Oct 2020 22:22:42 +0000 (15:22 -0700)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 21 Oct 2020 17:14:24 +0000 (10:14 -0700)
commit611959f004d78f99e45fdc940a7a4322b85d04d9
tree78b042ae12bf2155d67b4ed79440a0bc792d56c2
parentb6e4aae2cc269bbdce9263cd49dcd582840b333a
[AMDGPU] Fixed v_swap_b32 match

1. Fixed liveness issue with implicit kills.
2. Fixed potential problem with an indirect mov.

Fixes: SWDEV-256848

Differential Revision: https://reviews.llvm.org/D89599
llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
llvm/test/CodeGen/AMDGPU/v_swap_b32.mir