[turbofan] Remove dead code from Diamond class.
R=titzer@chromium.org Review URL: https://codereview.chromium.org/1365963003 Cr-Commit-Position: refs/heads/master@{#30920}
This commit is contained in:
parent
9b12ec9ac2
commit
d90fdd139b
@ -8,7 +8,6 @@
|
||||
#include "src/compiler/common-operator.h"
|
||||
#include "src/compiler/graph.h"
|
||||
#include "src/compiler/node.h"
|
||||
#include "src/compiler/node-properties.h"
|
||||
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
@ -57,28 +56,10 @@ struct Diamond {
|
||||
Node* EffectPhi(Node* tv, Node* fv) {
|
||||
return graph->NewNode(common->EffectPhi(2), tv, fv, merge);
|
||||
}
|
||||
|
||||
void OverwriteWithPhi(Node* node, MachineType machine_type, Node* tv,
|
||||
Node* fv) {
|
||||
DCHECK(node->InputCount() >= 3);
|
||||
node->ReplaceInput(0, tv);
|
||||
node->ReplaceInput(1, fv);
|
||||
node->ReplaceInput(2, merge);
|
||||
node->TrimInputCount(3);
|
||||
NodeProperties::ChangeOp(node, common->Phi(machine_type, 2));
|
||||
}
|
||||
|
||||
void OverwriteWithEffectPhi(Node* node, Node* te, Node* fe) {
|
||||
DCHECK(node->InputCount() >= 3);
|
||||
node->ReplaceInput(0, te);
|
||||
node->ReplaceInput(1, fe);
|
||||
node->ReplaceInput(2, merge);
|
||||
node->TrimInputCount(3);
|
||||
NodeProperties::ChangeOp(node, common->EffectPhi(2));
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
} // namespace v8::internal::compiler
|
||||
|
||||
} // namespace compiler
|
||||
} // namespace internal
|
||||
} // namespace v8
|
||||
|
||||
#endif // V8_COMPILER_DIAMOND_H_
|
||||
|
Loading…
Reference in New Issue
Block a user