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

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

Issue 2407153007: [turbofan] Remove Float32 truncation. (Closed)
Patch Set: Created 4 years, 2 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
Index: src/compiler/representation-change.cc
diff --git a/src/compiler/representation-change.cc b/src/compiler/representation-change.cc
index 6aa2f133a2be0ff3935ed216e5ca1f8aeb2952e8..6169c8071f9d0a369cbf9b5ee2c2e204cf66fe5a 100644
--- a/src/compiler/representation-change.cc
+++ b/src/compiler/representation-change.cc
@@ -24,8 +24,6 @@ const char* Truncation::description() const {
return "truncate-to-word32";
case TruncationKind::kWord64:
return "truncate-to-word64";
- case TruncationKind::kFloat32:
- return "truncate-to-float32";
case TruncationKind::kFloat64:
return "truncate-to-float64";
case TruncationKind::kAny:
@@ -42,15 +40,15 @@ const char* Truncation::description() const {
// ^ ^
// \ |
// \ kFloat64 <--+
-// \ ^ ^ |
-// \ / | |
-// kWord32 kFloat32 kBool
-// ^ ^ ^
-// \ | /
-// \ | /
-// \ | /
-// \ | /
-// \ | /
+// \ ^ |
+// \ / |
+// kWord32 kBool
+// ^ ^
+// \ /
+// \ /
+// \ /
+// \ /
+// \ /
// kNone
// static
@@ -87,9 +85,6 @@ bool Truncation::LessGeneral(TruncationKind rep1, TruncationKind rep2) {
rep2 == TruncationKind::kFloat64 || rep2 == TruncationKind::kAny;
case TruncationKind::kWord64:
return rep2 == TruncationKind::kWord64;
- case TruncationKind::kFloat32:
- return rep2 == TruncationKind::kFloat32 ||
- rep2 == TruncationKind::kFloat64 || rep2 == TruncationKind::kAny;
case TruncationKind::kFloat64:
return rep2 == TruncationKind::kFloat64 || rep2 == TruncationKind::kAny;
case TruncationKind::kAny:

Powered by Google App Engine
This is Rietveld 408576698