Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/alloc/LinearScan.java @ 2546:e1b3db8031ee
Removed liveness marking.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 21:54:31 +0200 |
parents | a384fac3fd34 |
children | 274360f98f97 |
comparison
equal
deleted
inserted
replaced
2545:bb050fe2901d | 2546:e1b3db8031ee |
---|---|
2042 if (value instanceof Constant) { | 2042 if (value instanceof Constant) { |
2043 con = (Constant) value; | 2043 con = (Constant) value; |
2044 } | 2044 } |
2045 | 2045 |
2046 assert con == null || operand.isVariable() || operand.isConstant() || operand.isIllegal() : "Constant instructions have only constant operands (or illegal if constant is optimized away)"; | 2046 assert con == null || operand.isVariable() || operand.isConstant() || operand.isIllegal() : "Constant instructions have only constant operands (or illegal if constant is optimized away)"; |
2047 | |
2048 if (con != null && !con.isLive() && !operand.isConstant()) { | |
2049 // Unpinned constants may have a variable operand for a part of the lifetime | |
2050 // or may be illegal when it was optimized away, | |
2051 // so always use a constant operand | |
2052 operand = con.asConstant(); | |
2053 } | |
2054 | 2047 |
2055 if (operand.isVariable()) { | 2048 if (operand.isVariable()) { |
2056 OperandMode mode = OperandMode.Input; | 2049 OperandMode mode = OperandMode.Input; |
2057 BlockBegin block = blockForId(opId); | 2050 BlockBegin block = blockForId(opId); |
2058 if (block.numberOfSux() == 1 && opId == block.lastLirInstructionId()) { | 2051 if (block.numberOfSux() == 1 && opId == block.lastLirInstructionId()) { |