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

Side by Side Diff: src/compiler/instruction.cc

Issue 2176173003: [Turbofan] Revert FP register aliasing support on Arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 4 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
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/move-optimizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/instruction.h" 7 #include "src/compiler/instruction.h"
8 #include "src/compiler/schedule.h" 8 #include "src/compiler/schedule.h"
9 #include "src/compiler/state-values-utils.h" 9 #include "src/compiler/state-values-utils.h"
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 case kNotOverflow: 58 case kNotOverflow:
59 case kUnorderedEqual: 59 case kUnorderedEqual:
60 case kUnorderedNotEqual: 60 case kUnorderedNotEqual:
61 return condition; 61 return condition;
62 } 62 }
63 UNREACHABLE(); 63 UNREACHABLE();
64 return condition; 64 return condition;
65 } 65 }
66 66
67 bool InstructionOperand::InterferesWith(const InstructionOperand& that) const { 67 bool InstructionOperand::InterferesWith(const InstructionOperand& that) const {
68 if (!IsFPRegister() || !that.IsFPRegister() || kSimpleFPAliasing) 68 return EqualsCanonicalized(that);
69 return EqualsCanonicalized(that);
70 // Both operands are fp registers and aliasing is non-simple.
71 const LocationOperand& loc1 = *LocationOperand::cast(this);
72 const LocationOperand& loc2 = LocationOperand::cast(that);
73 return GetRegConfig()->AreAliases(loc1.representation(), loc1.register_code(),
74 loc2.representation(),
75 loc2.register_code());
76 } 69 }
77 70
78 void InstructionOperand::Print(const RegisterConfiguration* config) const { 71 void InstructionOperand::Print(const RegisterConfiguration* config) const {
79 OFStream os(stdout); 72 OFStream os(stdout);
80 PrintableInstructionOperand wrapper; 73 PrintableInstructionOperand wrapper;
81 wrapper.register_configuration_ = config; 74 wrapper.register_configuration_ = config;
82 wrapper.op_ = *this; 75 wrapper.op_ = *this;
83 os << wrapper << std::endl; 76 os << wrapper << std::endl;
84 } 77 }
85 78
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 } 1014 }
1022 for (int i = 0; i < code.InstructionBlockCount(); i++) { 1015 for (int i = 0; i < code.InstructionBlockCount(); i++) {
1023 printable.sequence_->PrintBlock(printable.register_configuration_, i); 1016 printable.sequence_->PrintBlock(printable.register_configuration_, i);
1024 } 1017 }
1025 return os; 1018 return os;
1026 } 1019 }
1027 1020
1028 } // namespace compiler 1021 } // namespace compiler
1029 } // namespace internal 1022 } // namespace internal
1030 } // namespace v8 1023 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/move-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698