diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h index b5aea707d2..74efd86fbe 100644 --- a/src/compiler/instruction.h +++ b/src/compiler/instruction.h @@ -856,10 +856,7 @@ class Instruction final { reference_map_ = nullptr; } - bool IsNop() const { - return arch_opcode() == kArchNop && InputCount() == 0 && - OutputCount() == 0 && TempCount() == 0; - } + bool IsNop() const { return arch_opcode() == kArchNop; } bool IsDeoptimizeCall() const { return arch_opcode() == ArchOpcode::kArchDeoptimize ||