From 9836620e6c71150dfb79a39ef6faafeea2d0da01 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 13 Apr 1999 10:49:08 +0000 Subject: [PATCH] only merge adjacent pops, if the second has no predecessors git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@586 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/obfuscator/RemovePopAnalyzer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jode/jode/obfuscator/RemovePopAnalyzer.java b/jode/jode/obfuscator/RemovePopAnalyzer.java index 5a01aa0..6f6b789 100644 --- a/jode/jode/obfuscator/RemovePopAnalyzer.java +++ b/jode/jode/obfuscator/RemovePopAnalyzer.java @@ -203,7 +203,7 @@ public class RemovePopAnalyzer implements CodeAnalyzer, Opcodes { case opc_istore: case opc_fstore: case opc_astore: case opc_pop: - count ++; + count++; break; case opc_lstore: case opc_dstore: @@ -405,7 +405,7 @@ public class RemovePopAnalyzer implements CodeAnalyzer, Opcodes { continue; } } - if (instr.opcode == opc_pop + if (instr.opcode == opc_pop && instr.preds == null && instr.prevByAddr.opcode == opc_pop) { /* merge two single pops together. */ instr.prevByAddr.removeInstruction();