From 931bb768fd0c5f3663c088b8031d878f3076e536 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 llvm-svn: 183528 --- llvm/lib/Target/R600/R600OptimizeVectorRegisters.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/lib/Target/R600/R600OptimizeVectorRegisters.cpp b/llvm/lib/Target/R600/R600OptimizeVectorRegisters.cpp index b122baef1240..9d237bb7a049 100644 --- a/llvm/lib/Target/R600/R600OptimizeVectorRegisters.cpp +++ b/llvm/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"); }