R600/SI: Fix incorrect commute operation in shrink instructions pass
authorTom Stellard <thomas.stellard@amd.com>
Fri, 1 Aug 2014 00:32:28 +0000 (00:32 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 1 Aug 2014 00:32:28 +0000 (00:32 +0000)
commite5fc4208eba3a3ca3489d6bdbdcfff9c45b1e5ab
tree8519f55f22efa2b2005b84eeb549eeb6a0356c6e
parent42deb12738dfc5d817d7eaf291c001a20bd1e22b
R600/SI: Fix incorrect commute operation in shrink instructions pass

We were commuting the instruction by still shrinking it using the
original opcode.

NOTE: This is a candidate for the 3.5 branch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214463 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIInstrInfo.cpp
lib/Target/R600/SIInstrInfo.h
lib/Target/R600/SIShrinkInstructions.cpp
test/CodeGen/R600/vop-shrink.ll [new file with mode: 0644]