diff options
author | Vincent Lejeune <vljn@ovi.com> | 2013-09-04 19:53:54 +0000 |
---|---|---|
committer | Vincent Lejeune <vljn@ovi.com> | 2013-09-04 19:53:54 +0000 |
commit | f94eea9e112a75d0d328f799dd889681094cee97 (patch) | |
tree | d2f6b813ca5e523d542d22f063e495e6093453c6 /lib/Target/R600 | |
parent | bb25a01d232257b134f1f6a5810116cbb04b95b1 (diff) | |
download | external_llvm-f94eea9e112a75d0d328f799dd889681094cee97.zip external_llvm-f94eea9e112a75d0d328f799dd889681094cee97.tar.gz external_llvm-f94eea9e112a75d0d328f799dd889681094cee97.tar.bz2 |
R600: Use shared op optimization when checking cycle compatibility
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600')
-rw-r--r-- | lib/Target/R600/R600InstrInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/R600/R600InstrInfo.cpp b/lib/Target/R600/R600InstrInfo.cpp index e3cb71b..0e7cfb4 100644 --- a/lib/Target/R600/R600InstrInfo.cpp +++ b/lib/Target/R600/R600InstrInfo.cpp @@ -336,6 +336,8 @@ R600InstrInfo::ExtractSrcs(MachineInstr *MI, static std::vector<std::pair<int, unsigned> > Swizzle(std::vector<std::pair<int, unsigned> > Src, R600InstrInfo::BankSwizzle Swz) { + if (Src[0] == Src[1]) + Src[1].first = -1; switch (Swz) { case R600InstrInfo::ALU_VEC_012_SCL_210: break; |