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

Unified Diff: src/compiler/move-optimizer.cc

Issue 2214843003: [Turbofan] Remove stray aliasing code from MoveOptimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/move-optimizer.cc
diff --git a/src/compiler/move-optimizer.cc b/src/compiler/move-optimizer.cc
index 96fca287ed25c42ee8674abf8534b3af87eab2ad..482c254de168d2ba4beb9fba25d15ba6a72e7038 100644
--- a/src/compiler/move-optimizer.cc
+++ b/src/compiler/move-optimizer.cc
@@ -28,20 +28,7 @@ typedef ZoneMap<MoveKey, unsigned, MoveKeyCompare> MoveMap;
typedef ZoneSet<InstructionOperand, CompareOperandModuloType> OperandSet;
bool Blocks(const OperandSet& set, const InstructionOperand& operand) {
- if (!operand.IsFPRegister()) return set.find(operand) != set.end();
-
- const LocationOperand& loc = LocationOperand::cast(operand);
- if (loc.representation() == MachineRepresentation::kFloat64) {
- return set.find(operand) != set.end() ||
- set.find(LocationOperand(loc.kind(), loc.location_kind(),
- MachineRepresentation::kFloat32,
- loc.register_code())) != set.end();
- }
- DCHECK_EQ(MachineRepresentation::kFloat32, loc.representation());
- return set.find(operand) != set.end() ||
- set.find(LocationOperand(loc.kind(), loc.location_kind(),
- MachineRepresentation::kFloat64,
- loc.register_code())) != set.end();
+ return set.find(operand) != set.end();
}
int FindFirstNonEmptySlot(const Instruction* instr) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698