Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: src/mips/lithium-mips.cc

Issue 323423003: ARM: Avoid duplicate vmla when merging vmul and vadd (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/lithium-allocator-inl.h" 7 #include "src/lithium-allocator-inl.h"
8 #include "src/mips/lithium-mips.h" 8 #include "src/mips/lithium-mips.h"
9 #include "src/mips/lithium-codegen-mips.h" 9 #include "src/mips/lithium-codegen-mips.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 right_op = UseRegister(right); 1485 right_op = UseRegister(right);
1486 } 1486 }
1487 LMulI* mul = new(zone()) LMulI(left_op, right_op); 1487 LMulI* mul = new(zone()) LMulI(left_op, right_op);
1488 if (can_overflow || bailout_on_minus_zero) { 1488 if (can_overflow || bailout_on_minus_zero) {
1489 AssignEnvironment(mul); 1489 AssignEnvironment(mul);
1490 } 1490 }
1491 return DefineAsRegister(mul); 1491 return DefineAsRegister(mul);
1492 1492
1493 } else if (instr->representation().IsDouble()) { 1493 } else if (instr->representation().IsDouble()) {
1494 if (kArchVariant == kMips32r2) { 1494 if (kArchVariant == kMips32r2) {
1495 if (instr->UseCount() == 1 && instr->uses().value()->IsAdd()) { 1495 if (instr->HasOneUse() && instr->uses().value()->IsAdd()) {
1496 HAdd* add = HAdd::cast(instr->uses().value()); 1496 HAdd* add = HAdd::cast(instr->uses().value());
1497 if (instr == add->left()) { 1497 if (instr == add->left()) {
1498 // This mul is the lhs of an add. The add and mul will be folded 1498 // This mul is the lhs of an add. The add and mul will be folded
1499 // into a multiply-add. 1499 // into a multiply-add.
1500 return NULL; 1500 return NULL;
1501 } 1501 }
1502 if (instr == add->right() && !add->left()->IsMul()) { 1502 if (instr == add->right() && !add->left()->IsMul()) {
1503 // This mul is the rhs of an add, where the lhs is not another mul. 1503 // This mul is the rhs of an add, where the lhs is not another mul.
1504 // The add and mul will be folded into a multiply-add. 1504 // The add and mul will be folded into a multiply-add.
1505 return NULL; 1505 return NULL;
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
2536 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2536 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2537 HAllocateBlockContext* instr) { 2537 HAllocateBlockContext* instr) {
2538 LOperand* context = UseFixed(instr->context(), cp); 2538 LOperand* context = UseFixed(instr->context(), cp);
2539 LOperand* function = UseRegisterAtStart(instr->function()); 2539 LOperand* function = UseRegisterAtStart(instr->function());
2540 LAllocateBlockContext* result = 2540 LAllocateBlockContext* result =
2541 new(zone()) LAllocateBlockContext(context, function); 2541 new(zone()) LAllocateBlockContext(context, function);
2542 return MarkAsCall(DefineFixed(result, cp), instr); 2542 return MarkAsCall(DefineFixed(result, cp), instr);
2543 } 2543 }
2544 2544
2545 } } // namespace v8::internal 2545 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698