R600/SI: Fix suspicious indexing
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 3 Dec 2014 05:22:32 +0000 (05:22 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 3 Dec 2014 05:22:32 +0000 (05:22 +0000)
commitbd5f9f45d120dc78f12e2c2c3caea305bde948e4
treee85e1c6f198d590667e75cb5bc2c4b7721dc5dc5
parentcfde1fb5be2060078589172b42cda70411d75460
R600/SI: Fix suspicious indexing

The loop is over the operands of an instruction, and checks the
register with the sub reg index of the dest register. This probably
meant to be checking the sub reg index of the same operand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223205 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIFixSGPRCopies.cpp