Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/target/amd64/AMD64LIRGenerator.java @ 2718:c1ce2a53d6c3
Attempt to remove dependency between backend and BlockBegin.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 19 May 2011 16:05:42 +0200 |
parents | a0dd2b907806 |
children | c379183d1c54 |
comparison
equal
deleted
inserted
replaced
2717:bd85cf08720a | 2718:c1ce2a53d6c3 |
---|---|
138 lir.negate(value.result(), reg, globalStub); | 138 lir.negate(value.result(), reg, globalStub); |
139 setResult(x, reg); | 139 setResult(x, reg); |
140 } | 140 } |
141 | 141 |
142 public boolean livesLonger(Value x, Value y) { | 142 public boolean livesLonger(Value x, Value y) { |
143 BlockBegin bx = x.block(); | 143 // TODO(tw): Estimate which value will live longer. |
144 BlockBegin by = y.block(); | 144 return false; |
145 if (bx == null || by == null) { | |
146 return false; | |
147 } | |
148 return bx.loopDepth() < by.loopDepth(); | |
149 } | 145 } |
150 | 146 |
151 public void visitArithmeticOpFloat(ArithmeticOp x) { | 147 public void visitArithmeticOpFloat(ArithmeticOp x) { |
152 LIRItem left = new LIRItem(x.x(), this); | 148 LIRItem left = new LIRItem(x.x(), this); |
153 LIRItem right = new LIRItem(x.y(), this); | 149 LIRItem right = new LIRItem(x.y(), this); |