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

Unified Diff: src/compiler/instruction-scheduler.h

Issue 2193063003: [turbofan] Use a map to cache values definition in instruction scheduler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | src/compiler/instruction-scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction-scheduler.h
diff --git a/src/compiler/instruction-scheduler.h b/src/compiler/instruction-scheduler.h
index 4f5b0f789fd2b0cda4bb751498c1c218a85c200f..271aa0d0d7ae2109eb07c02399986607ddd3ff6a 100644
--- a/src/compiler/instruction-scheduler.h
+++ b/src/compiler/instruction-scheduler.h
@@ -156,10 +156,6 @@ class InstructionScheduler final : public ZoneObject {
int GetInstructionFlags(const Instruction* instr) const;
int GetTargetInstructionFlags(const Instruction* instr) const;
- // Return true if instr2 uses any value defined by instr1.
- bool HasOperandDependency(const Instruction* instr1,
- const Instruction* instr2) const;
-
// Return true if the instruction is a basic block terminator.
bool IsBlockTerminator(const Instruction* instr) const;
@@ -214,6 +210,10 @@ class InstructionScheduler final : public ZoneObject {
// Last deoptimization instruction encountered while building the graph.
ScheduleGraphNode* last_deopt_;
+
+ // Keep track of definition points for virtual registers. This is used to
+ // record operand dependencies in the scheduling graph.
+ ZoneMap<int32_t, ScheduleGraphNode*> operands_map_;
};
} // namespace compiler
« no previous file with comments | « no previous file | src/compiler/instruction-scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698