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

Unified Diff: src/compiler/representation-change.h

Issue 2168023002: [turbofan] Eliminate unused effectful nodes during representation selection. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix VisitUnused for JS operators. 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 | « src/compiler/common-operator.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/representation-change.h
diff --git a/src/compiler/representation-change.h b/src/compiler/representation-change.h
index b6cf7fa5995425d755ff1031c3f555782290069e..ab73a411db8a469e7a861fd1f29b286b4576fbb8 100644
--- a/src/compiler/representation-change.h
+++ b/src/compiler/representation-change.h
@@ -28,6 +28,7 @@ class Truncation final {
}
// Queries.
+ bool IsUnused() const { return kind_ == TruncationKind::kNone; }
bool TruncatesToWord32() const {
return LessGeneral(kind_, TruncationKind::kWord32);
}
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698