Update of /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26460/src/com/mebigfatguy/fbcontrib/detect
Modified Files:
UnnecessaryStoreBeforeReturn.java
Log Message:
fix fp's for ifnull and ifnonnull branch targets as well
Index: UnnecessaryStoreBeforeReturn.java
===================================================================
RCS file: /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UnnecessaryStoreBeforeReturn.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- UnnecessaryStoreBeforeReturn.java 4 Dec 2005 05:32:46 -0000 1.3
+++ UnnecessaryStoreBeforeReturn.java 4 Dec 2005 06:41:24 -0000 1.4
@@ -36,6 +36,7 @@
private static final Set<Integer> branchInstructions = new HashSet<Integer>();
static {
branchInstructions.add(new Integer(GOTO));
+ branchInstructions.add(new Integer(GOTO_W));
branchInstructions.add(new Integer(IFEQ));
branchInstructions.add(new Integer(IFNE));
branchInstructions.add(new Integer(IFLT));
@@ -50,6 +51,8 @@
branchInstructions.add(new Integer(IF_ICMPLE));
branchInstructions.add(new Integer(IF_ACMPEQ));
branchInstructions.add(new Integer(IF_ACMPNE));
+ branchInstructions.add(new Integer(IFNULL));
+ branchInstructions.add(new Integer(IFNONNULL));
}
private BugReporter bugReporter;
|