comparison graal/GraalCompiler/src/com/sun/c1x/graph/IR.java @ 2661:194d93d089bd

Towards clean up of canTrap().
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 11 May 2011 17:18:31 +0200
parents 7c8ad40c1f88
children 6ab73784566a
comparison
equal deleted inserted replaced
2660:9f557e940180 2661:194d93d089bd
190 // the successor could be the target of a switch so it might have 190 // the successor could be the target of a switch so it might have
191 // multiple copies of this predecessor, so substitute the new_sux 191 // multiple copies of this predecessor, so substitute the new_sux
192 // for the first and delete the rest. 192 // for the first and delete the rest.
193 List<BlockBegin> list = target.blockPredecessors(); 193 List<BlockBegin> list = target.blockPredecessors();
194 int x = list.indexOf(source); 194 int x = list.indexOf(source);
195 assert x >= 0;
196 list.set(x, newSucc); 195 list.set(x, newSucc);
197 newSucc.addPredecessor(source); 196 newSucc.addPredecessor(source);
198 Iterator<BlockBegin> iterator = list.iterator(); 197 Iterator<BlockBegin> iterator = list.iterator();
199 while (iterator.hasNext()) { 198 while (iterator.hasNext()) {
200 if (iterator.next() == source) { 199 if (iterator.next() == source) {