Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/opt/PhiSimplifier.java @ 2582:768d77a1c7af
new node layout: Instruction
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 05 May 2011 13:47:14 +0200 |
parents | 3fca504f28ba |
children | 785e9ecdcc69 |
comparison
equal
deleted
inserted
replaced
2581:4a36a0bd6d18 | 2582:768d77a1c7af |
---|---|
76 return phi; | 76 return phi; |
77 } else { | 77 } else { |
78 // attempt to simplify the phi by recursively simplifying its operands | 78 // attempt to simplify the phi by recursively simplifying its operands |
79 phi.setFlag(Value.Flag.PhiVisited); | 79 phi.setFlag(Value.Flag.PhiVisited); |
80 Value phiSubst = null; | 80 Value phiSubst = null; |
81 int max = phi.inputCount(); | 81 int max = phi.phiInputCount(); |
82 boolean cannotSimplify = false; | 82 boolean cannotSimplify = false; |
83 for (int i = 0; i < max; i++) { | 83 for (int i = 0; i < max; i++) { |
84 Value oldInstr = phi.inputAt(i); | 84 Value oldInstr = phi.inputAt(i); |
85 | 85 |
86 if (oldInstr == null || oldInstr.isIllegal() || oldInstr.isDeadPhi()) { | 86 if (oldInstr == null || oldInstr.isIllegal() || oldInstr.isDeadPhi()) { |