diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/R600/R600OptimizeVectorRegisters.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/R600/R600OptimizeVectorRegisters.cpp b/lib/Target/R600/R600OptimizeVectorRegisters.cpp index b122bae..9d237bb 100644 --- a/lib/Target/R600/R600OptimizeVectorRegisters.cpp +++ b/lib/Target/R600/R600OptimizeVectorRegisters.cpp @@ -164,10 +164,8 @@ unsigned getReassignedChan( const std::vector<std::pair<unsigned, unsigned> > &RemapChan, unsigned Chan) { for (unsigned j = 0, je = RemapChan.size(); j < je; j++) { - if (RemapChan[j].first == Chan) { + if (RemapChan[j].first == Chan) return RemapChan[j].second; - break; - } } llvm_unreachable("Chan wasn't reassigned"); } |