From 74f03455e5ee463a43a0f82efbd2fbd364e2cbda Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Fri, 7 Jun 2013 15:44:53 +0000 Subject: [PATCH] R600: Remove an extra break in R600OptimizeVectorRegisters.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183528 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/R600OptimizeVectorRegisters.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Target/R600/R600OptimizeVectorRegisters.cpp b/lib/Target/R600/R600OptimizeVectorRegisters.cpp index b122baef124..9d237bb7a04 100644 --- a/lib/Target/R600/R600OptimizeVectorRegisters.cpp +++ b/lib/Target/R600/R600OptimizeVectorRegisters.cpp @@ -164,10 +164,8 @@ unsigned getReassignedChan( const std::vector > &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"); }