Index: src/interpreter/mkpeephole.cc |
diff --git a/src/interpreter/mkpeephole.cc b/src/interpreter/mkpeephole.cc |
index 62d3a77e02c7faf513f1d8ff020217b6fd4785dd..ff65ee47c76a91dd8c6a5c094bb16c5453b72b02 100644 |
--- a/src/interpreter/mkpeephole.cc |
+++ b/src/interpreter/mkpeephole.cc |
@@ -122,16 +122,6 @@ PeepholeActionAndData PeepholeActionTableWriter::LookupActionAndData( |
// TODO(rmcilroy): Add elide for consecutive mov to and from the same |
// register. |
- // Remove ToBoolean coercion from conditional jumps where possible. |
- if (Bytecodes::WritesBooleanToAccumulator(last)) { |
- if (Bytecodes::IsJumpIfToBoolean(current)) { |
- return {PeepholeAction::kChangeJumpBytecodeAction, |
- Bytecodes::GetJumpWithoutToBoolean(current)}; |
- } else if (current == Bytecode::kToBooleanLogicalNot) { |
- return {PeepholeAction::kChangeBytecodeAction, Bytecode::kLogicalNot}; |
- } |
- } |
- |
// Fuse LdaSmi followed by binary op to produce binary op with a |
// immediate integer argument. This savaes on dispatches and size. |
if (last == Bytecode::kLdaSmi) { |