diff 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
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/target/amd64/AMD64LIRGenerator.java	Thu May 19 14:31:03 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/target/amd64/AMD64LIRGenerator.java	Thu May 19 16:05:42 2011 +0200
@@ -140,12 +140,8 @@
     }
 
     public boolean livesLonger(Value x, Value y) {
-        BlockBegin bx = x.block();
-        BlockBegin by = y.block();
-        if (bx == null || by == null) {
-            return false;
-        }
-        return bx.loopDepth() < by.loopDepth();
+        // TODO(tw): Estimate which value will live longer.
+        return false;
     }
 
     public void visitArithmeticOpFloat(ArithmeticOp x) {