22 return frame_state->
opcode() == IrOpcode::kFrameState
38bool IsRedundantCheckpoint(Node* node) {
39 FrameStateFunctionInfo
const* function_info = GetFunctionInfo(node);
40 if (function_info ==
nullptr)
return false;
43 effect->op()->EffectInputCount() == 1) {
44 if (effect->opcode() == IrOpcode::kCheckpoint) {
45 return GetFunctionInfo(effect) == function_info;
55 DCHECK_EQ(IrOpcode::kCheckpoint, node->opcode());
56 if (IsRedundantCheckpoint(node)) {
64 switch (node->opcode()) {
65 case IrOpcode::kCheckpoint:
CheckpointElimination(Editor *editor)
Reduction Reduce(Node *node) final
Reduction ReduceCheckpoint(Node *node)
static Node * GetEffectInput(Node *node, int index=0)
static Node * GetFrameStateInput(Node *node)
constexpr IrOpcode::Value opcode() const
const Operator * op() const
const FrameStateInfo & FrameStateInfoOf(const Operator *op)
#define DCHECK_EQ(v1, v2)