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

Unified Diff: src/compiler/simplified-lowering.cc

Issue 2851723002: [turbofan] Rip out the unused OsrGuard node. (Closed)
Patch Set: Created 3 years, 8 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 | « src/compiler/osr.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
index f0fdb931a849cd6812dbeeb0958bbd4613224b9d..8b7e850b7b861fd7c3007d536b019b71229e4def 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -1402,30 +1402,6 @@ class RepresentationSelector {
return;
}
- void VisitOsrGuard(Node* node) {
- VisitInputs(node);
-
- // Insert a dynamic check for the OSR value type if necessary.
- switch (OsrGuardTypeOf(node->op())) {
- case OsrGuardType::kUninitialized:
- // At this point, we should always have a type for the OsrValue.
- UNREACHABLE();
- break;
- case OsrGuardType::kSignedSmall:
- if (lower()) {
- NodeProperties::ChangeOp(node,
- simplified()->CheckedTaggedToTaggedSigned());
- }
- return SetOutput(node, MachineRepresentation::kTaggedSigned);
- case OsrGuardType::kAny: // Nothing to check.
- if (lower()) {
- DeferReplacement(node, node->InputAt(0));
- }
- return SetOutput(node, MachineRepresentation::kTagged);
- }
- UNREACHABLE();
- }
-
// Dispatching routine for visiting the node {node} with the usage {use}.
// Depending on the operator, propagate new usage info to the inputs.
void VisitNode(Node* node, Truncation truncation,
@@ -2786,9 +2762,6 @@ class RepresentationSelector {
return;
}
- case IrOpcode::kOsrGuard:
- return VisitOsrGuard(node);
-
case IrOpcode::kFinishRegion:
VisitInputs(node);
// Assume the output is tagged pointer.
« no previous file with comments | « src/compiler/osr.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698