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

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

Issue 1480433003: [turbofan] Introduce representation-change.cc, move stuff there, minus dead code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
index a541161f88706a81fc862468f638b8d1101672eb..4e2e8029700164de3c3f05a9e82dabce547813da 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -294,28 +294,6 @@ class RepresentationSelector {
NodeProperties::GetType(node->InputAt(1))->Is(type);
}
- void ProcessTruncateWord32Input(Node* node, int index) {
- Node* input = node->InputAt(index);
- if (phase_ == PROPAGATE) {
- // In the propagate phase, propagate the usage information backward.
- Enqueue(input, UseInfo::TruncatingWord32());
- } else {
- // In the change phase, insert a change before the use if necessary.
- MachineTypeUnion output = GetInfo(input)->output_type();
- if ((output & (kRepBit | kRepWord8 | kRepWord16 | kRepWord32)) == 0) {
- // Output representation doesn't match usage.
- TRACE(" truncate-to-int32: #%d:%s(@%d #%d:%s) ", node->id(),
- node->op()->mnemonic(), index, input->id(),
- input->op()->mnemonic());
- TRACE(" from ");
- PrintInfo(output);
- TRACE("\n");
- Node* n = changer_->GetTruncatedWord32For(input, output);
- node->ReplaceInput(index, n);
- }
- }
- }
-
void EnqueueInputUse(Node* node, int index, UseInfo use) {
Enqueue(node->InputAt(index), use);
}

Powered by Google App Engine
This is Rietveld 408576698