[Fb-contrib-commit] SF.net SVN: fb-contrib:[1541] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2010-04-04 08:41:04
|
Revision: 1541
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1541&view=rev
Author: dbrosius
Date: 2010-04-04 08:40:57 +0000 (Sun, 04 Apr 2010)
Log Message:
-----------
don't report when two allocations are stored in the same reg
Modified Paths:
--------------
trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/PossibleConstantAllocationInLoop.java
Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/PossibleConstantAllocationInLoop.java
===================================================================
--- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/PossibleConstantAllocationInLoop.java 2010-04-04 08:27:25 UTC (rev 1540)
+++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/PossibleConstantAllocationInLoop.java 2010-04-04 08:40:57 UTC (rev 1541)
@@ -152,6 +152,10 @@
if (storedAllocations.values().contains(allocation)) {
allocations.remove(allocation);
storedAllocations.remove(reg);
+ } else if (storedAllocations.containsKey(reg)) {
+ allocations.remove(allocation);
+ allocation = storedAllocations.remove(reg);
+ allocations.remove(allocation);
} else {
storedAllocations.put(reg, allocation);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|