aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Lejeune <vljn@ovi.com>2013-06-07 15:44:53 +0000
committerVincent Lejeune <vljn@ovi.com>2013-06-07 15:44:53 +0000
commit74f03455e5ee463a43a0f82efbd2fbd364e2cbda (patch)
tree3fafa8b14382fcff165c260956c77da54a56735c /lib
parentb6564648a5d1601bef26a1eb3c9ef04ee1d1745f (diff)
downloadexternal_llvm-74f03455e5ee463a43a0f82efbd2fbd364e2cbda.zip
external_llvm-74f03455e5ee463a43a0f82efbd2fbd364e2cbda.tar.gz
external_llvm-74f03455e5ee463a43a0f82efbd2fbd364e2cbda.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/R600/R600OptimizeVectorRegisters.cpp4
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");
}