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)
commit86d12ebdbd33c0d04f4ecd74003a51abb55d488f
tree42fbe6faf19617c410a8832f9b0f835ab20e36ef
parent05fb383d2b867b8cfcbcbd0cd28cd1d67bcae998
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.
llvm-svn: 214463
llvm/lib/Target/R600/SIInstrInfo.cpp
llvm/lib/Target/R600/SIInstrInfo.h
llvm/lib/Target/R600/SIShrinkInstructions.cpp
llvm/test/CodeGen/R600/vop-shrink.ll [new file with mode: 0644]