/** * returns whether this block either loads or stores into the register in question * * @param reg * the register to look for loads or stores * * @return whether the block uses the register */ public boolean usesReg(Integer reg) { if ((loads != null) && loads.containsKey(reg)) { return true; } if ((stores != null) && stores.containsKey(reg)) { return true; } if (children != null) { for (ScopeBlock child : children) { if (child.usesReg(reg)) { return true; } } } return false; }
/** * returns whether this block either loads or stores into the register in question * * @param reg * the register to look for loads or stores * * @return whether the block uses the register */ public boolean usesReg(Integer reg) { if ((loads != null) && loads.containsKey(reg)) { return true; } if ((stores != null) && stores.containsKey(reg)) { return true; } if (children != null) { for (ScopeBlock child : children) { if (child.usesReg(reg)) { return true; } } } return false; }
Integer reg = entry.getKey(); for (ScopeBlock child : children) { if (child.usesReg(reg)) { if (child.isLoop || child.isSync() || child.isTry()) { inIgnoreSB = true;
Integer reg = entry.getKey(); for (ScopeBlock child : children) { if (child.usesReg(reg)) { if (child.isLoop || child.isSync() || child.isTry()) { inIgnoreSB = true;